projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use std::unique_ptr<> throughout the audio system
[supertux.git]
/
src
/
audio
/
stream_sound_source.hpp
diff --git
a/src/audio/stream_sound_source.hpp
b/src/audio/stream_sound_source.hpp
index
d3b3e94
..
1dbc63b
100644
(file)
--- a/
src/audio/stream_sound_source.hpp
+++ b/
src/audio/stream_sound_source.hpp
@@
-27,7
+27,7
@@
public:
StreamSoundSource();
virtual ~StreamSoundSource();
StreamSoundSource();
virtual ~StreamSoundSource();
- void set_sound_file(
SoundFile*
file);
+ void set_sound_file(
std::unique_ptr<SoundFile> new
file);
enum FadeState { NoFading, FadingOn, FadingOff };
enum FadeState { NoFading, FadingOn, FadingOff };
@@
-54,7
+54,7
@@
private:
= STREAMBUFFERSIZE / STREAMFRAGMENTS;
bool fillBufferAndQueue(ALuint buffer);
= STREAMBUFFERSIZE / STREAMFRAGMENTS;
bool fillBufferAndQueue(ALuint buffer);
-
SoundFile*
file;
+
std::unique_ptr<SoundFile>
file;
ALuint buffers[STREAMFRAGMENTS];
FadeState fade_state;
ALuint buffers[STREAMFRAGMENTS];
FadeState fade_state;