Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
sound::SoundDataUnopenBuffer Struct Referencefinal

Sound file is in a memory buffer. More...

#include <sound_data.h>

+ Inheritance diagram for sound::SoundDataUnopenBuffer:
+ Collaboration diagram for sound::SoundDataUnopenBuffer:

Public Member Functions

 SoundDataUnopenBuffer (std::string &&buffer)
 
std::shared_ptr< ISoundDataOpenopen (const std::string &sound_name) &&override
 
- Public Member Functions inherited from sound::ISoundDataUnopen
virtual ~ISoundDataUnopen ()=default
 

Public Attributes

std::string m_buffer
 

Detailed Description

Sound file is in a memory buffer.

Constructor & Destructor Documentation

◆ SoundDataUnopenBuffer()

sound::SoundDataUnopenBuffer::SoundDataUnopenBuffer ( std::string && buffer)
inlineexplicit

Member Function Documentation

◆ open()

std::shared_ptr< ISoundDataOpen > sound::SoundDataUnopenBuffer::open ( const std::string & sound_name) &&
overridevirtual

Implements sound::ISoundDataUnopen.

References sound::ISoundDataOpen::fromOggFile(), sound::OggVorbisBufferSource::s_ov_callbacks, and warningstream.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_buffer

std::string sound::SoundDataUnopenBuffer::m_buffer

The documentation for this struct was generated from the following files: