Stores sound pcm data buffers. More...
#include <sound_data.h>
Public Member Functions | |
| ISoundDataOpen (const OggFileDecodeInfo &decode_info) | |
| virtual | ~ISoundDataOpen ()=default |
| virtual bool | isStreaming () const noexcept=0 |
| Iff the data is streaming, there is more than one buffer. | |
| virtual std::tuple< ALuint, ALuint, ALuint > | getOrLoadBufferAt (ALuint offset)=0 |
| Load a buffer containing data starting at the given offset. | |
Static Public Member Functions | |
| static std::shared_ptr< ISoundDataOpen > | fromOggFile (std::unique_ptr< RAIIOggFile > oggfile, const std::string &filename_for_logging) |
Public Attributes | |
| OggFileDecodeInfo | m_decode_info |
Stores sound pcm data buffers.
|
inlineexplicit |
References m_decode_info.
Referenced by sound::SoundDataOpenBuffer::SoundDataOpenBuffer(), sound::SoundDataOpenStream::SoundDataOpenStream(), and getOrLoadBufferAt().
|
virtualdefault |
|
static |
References sound::SOUND_DURATION_MAX_SINGLE, and warningstream.
Referenced by getOrLoadBufferAt(), sound::SoundDataUnopenBuffer::open(), and sound::SoundDataUnopenFile::open().
|
pure virtual |
Load a buffer containing data starting at the given offset.
Or just get it if it was already loaded.
This function returns multiple values:
| offset | The start of the buffer. |
Implemented in sound::SoundDataOpenBuffer, and sound::SoundDataOpenStream.
References ISoundDataOpen(), fromOggFile(), and getOrLoadBufferAt().
Referenced by getOrLoadBufferAt().
|
pure virtualnoexcept |
Iff the data is streaming, there is more than one buffer.
Implemented in sound::SoundDataOpenBuffer, and sound::SoundDataOpenStream.
| OggFileDecodeInfo sound::ISoundDataOpen::m_decode_info |