Non-streaming opened sound data. More...
#include <sound_data.h>
Public Member Functions | |
| SoundDataOpenBuffer (std::unique_ptr< RAIIOggFile > oggfile, const OggFileDecodeInfo &decode_info) | |
| bool | isStreaming () const noexcept override |
| Iff the data is streaming, there is more than one buffer. | |
| std::tuple< ALuint, ALuint, ALuint > | getOrLoadBufferAt (ALuint offset) override |
| Load a buffer containing data starting at the given offset. | |
| Public Member Functions inherited from sound::ISoundDataOpen | |
| ISoundDataOpen (const OggFileDecodeInfo &decode_info) | |
| virtual | ~ISoundDataOpen ()=default |
Public Attributes | |
| RAIIALSoundBuffer | m_buffer |
| Public Attributes inherited from sound::ISoundDataOpen | |
| OggFileDecodeInfo | m_decode_info |
Additional Inherited Members | |
| Static Public Member Functions inherited from sound::ISoundDataOpen | |
| static std::shared_ptr< ISoundDataOpen > | fromOggFile (std::unique_ptr< RAIIOggFile > oggfile, const std::string &filename_for_logging) |
Non-streaming opened sound data.
All data is completely loaded in one buffer.
| sound::SoundDataOpenBuffer::SoundDataOpenBuffer | ( | std::unique_ptr< RAIIOggFile > | oggfile, |
| const OggFileDecodeInfo & | decode_info ) |
References sound::ISoundDataOpen::ISoundDataOpen(), m_buffer, and sound::ISoundDataOpen::m_decode_info.
|
inlineoverridevirtual |
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. |
Implements sound::ISoundDataOpen.
References m_buffer, and sound::ISoundDataOpen::m_decode_info.
|
inlineoverridevirtualnoexcept |
Iff the data is streaming, there is more than one buffer.
Implements sound::ISoundDataOpen.
| RAIIALSoundBuffer sound::SoundDataOpenBuffer::m_buffer |
Referenced by SoundDataOpenBuffer(), and getOrLoadBufferAt().