P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
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>

Inheritance diagram for audio::ISoundBuffer:

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

Implemented in RaySoundBuffer, SdlSoundBuffer, SdlSoundBuffer, and SfmlSoundBuffer.

◆ isReady()

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

notice if the buffer is ready

Returns
bool

Implemented in RaySoundBuffer, SdlSoundBuffer, SdlSoundBuffer, and SfmlSoundBuffer.


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