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