StreamSoundSource();
virtual ~StreamSoundSource();
- void set_sound_file(SoundFile* file);
+ void set_sound_file(std::unique_ptr<SoundFile> newfile);
enum FadeState { NoFading, FadingOn, FadingOff };
= STREAMBUFFERSIZE / STREAMFRAGMENTS;
bool fillBufferAndQueue(ALuint buffer);
- SoundFile* file;
+ std::unique_ptr<SoundFile> file;
ALuint buffers[STREAMFRAGMENTS];
FadeState fade_state;