Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | List of all members
smlt::SoundDriver Class Referenceabstract
Inheritance diagram for smlt::SoundDriver:
smlt::NullSoundDriver smlt::OpenALSoundDriver

Public Member Functions

 SoundDriver (Window *window)
 
virtual bool startup ()=0
 
virtual void shutdown ()=0
 
virtual std::vector< AudioSourceID > generate_sources (uint32_t count)=0
 
virtual std::vector< AudioBufferID > generate_buffers (uint32_t count)=0
 
virtual void destroy_buffers (const std::vector< AudioBufferID > &buffers)=0
 
virtual void destroy_sources (const std::vector< AudioSourceID > &sources)=0
 
virtual void play_source (AudioSourceID source_id)=0
 
virtual void stop_source (AudioSourceID source_id)=0
 
virtual void queue_buffers_to_source (AudioSourceID source, uint32_t count, const std::vector< AudioBufferID > &buffers)=0
 
virtual std::vector< AudioBufferID > unqueue_buffers_from_source (AudioSourceID source, uint32_t count)=0
 
virtual void upload_buffer_data (AudioBufferID buffer, AudioDataFormat format, const uint8_t *data, std::size_t bytes, uint32_t frequency)=0
 
virtual AudioSourceState source_state (AudioSourceID source)=0
 
virtual int32_t source_buffers_processed_count (AudioSourceID source) const =0
 
virtual void set_source_as_ambient (AudioSourceID id)=0
 
virtual void set_listener_properties (const Vec3 &position, const Quaternion &rotation, const Vec3 &velocity)=0
 
virtual void set_source_properties (AudioSourceID id, const Vec3 &position, const Vec3 &velocity)=0
 
virtual void set_source_reference_distance (AudioSourceID id, float dist)=0
 
virtual void set_source_gain (AudioSourceID id, RangeValue< 0, 1 > value)=0
 
virtual void set_source_pitch (AudioSourceID id, RangeValue< 0, 1 > value)=0
 

Public Attributes

Property< Window *SoundDriver::* > window = {this, &SoundDriver::window_}
 

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