32#include "soundprovider.h"
39 class SoundProvider_Raw_Impl;
71 std::shared_ptr<SoundProvider_Raw_Impl> impl;
Sound provider in a raw PCM format (no header in file).
Definition soundprovider_raw.h:43
friend class SoundProvider_Raw_Session
Definition soundprovider_raw.h:73
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.
SoundProvider_Session * begin_session() override
Called by SoundBuffer when a new session starts.
~SoundProvider_Raw() override
void end_session(SoundProvider_Session *session) override
Called by SoundBuffer when a session has finished. After this call,.
Sound provider playback session.
Definition soundprovider_session.h:46
Sound provider.
Definition soundprovider.h:46
@ frequency
value is a time