32 #include "soundprovider.h"
39 class SoundProvider_Raw_Impl;
60 int frequency = 22050);
83 std::shared_ptr<SoundProvider_Raw_Impl> impl;
Sound provider.
Definition: soundprovider.h:46
virtual SoundProvider_Session * begin_session() override
Called by SoundBuffer when a new session starts.
Sound provider playback session.
Definition: soundprovider_session.h:46
Sound provider in a raw PCM format (no header in file).
Definition: soundprovider_raw.h:43
virtual void end_session(SoundProvider_Session *session) override
Called by SoundBuffer when a session has finished. After this call,.
friend class SoundProvider_Raw_Session
Definition: soundprovider_raw.h:85
SoundProvider_Raw(void *sound_data, int num_samples, int bytes_per_sample, bool stereo, int frequency=22050)
Constructs a sound provider based on some raw PCM data.
virtual ~SoundProvider_Raw()