iaudio 0.1.0
Contrat audio chargeable : IAudioModule
Loading...
Searching...
No Matches
audio::ISoundBuffer Interface Referenceabstract

Loaded audio samples, independent of any ISound that plays them - deleting every ISound built from a buffer does not delete the buffer, only deleteSoundBuffer() does. Not used by IMusic, which streams from disk instead of loading a full buffer, so there's nothing to share there. More...

#include <ISoundBuffer.hpp>

Public Member Functions

virtual ~ISoundBuffer ()=default
 
virtual bool isReady () const =0
 notice if the buffer is ready
 
virtual float getLength () const =0
 Get the Length of the buffered sound, in seconds.
 

Detailed Description

Loaded audio samples, independent of any ISound that plays them - deleting every ISound built from a buffer does not delete the buffer, only deleteSoundBuffer() does. Not used by IMusic, which streams from disk instead of loading a full buffer, so there's nothing to share there.

Constructor & Destructor Documentation

◆ ~ISoundBuffer()

virtual audio::ISoundBuffer::~ISoundBuffer ( )
virtualdefault

Member Function Documentation

◆ getLength()

virtual float audio::ISoundBuffer::getLength ( ) const
pure virtual

Get the Length of the buffered sound, in seconds.

Returns
float

◆ isReady()

virtual bool audio::ISoundBuffer::isReady ( ) const
pure virtual

notice if the buffer is ready

Returns
bool

The documentation for this interface was generated from the following file: