33 #ifndef _NSOUND_AUDIO_BACKEND_H_
34 #define _NSOUND_AUDIO_BACKEND_H_
60 uint32 sample_rate = 44100,
62 uint32 bits_per_sample = 16)
119 setOption(
const std::string & key,
const std::string & value) = 0;
virtual void play(void *data, uint32 n_bytes)=0
virtual void scanDevices(AudioPlayback &pb, const AudioStream &test_clip)=0
virtual std::string getInfo()=0
virtual void setOption(const std::string &key, const std::string &value)=0
AudioBackend(uint32 sample_rate=44100, uint32 channels=1, uint32 bits_per_sample=16)
virtual AudioBackendType getBackendType()=0
virtual void shutdown()=0
std::string getStateString()
Returns the backend state.
virtual std::string getError()=0
virtual void initialize()=0
uint32 getBitsPerSample()