projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fade out and pause music on death and resume on restart of level, fixes #1064
[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
1dbc63b
..
9e8ac9a
100644
(file)
--- a/
src/audio/stream_sound_source.hpp
+++ b/
src/audio/stream_sound_source.hpp
@@
-29,7
+29,7
@@
public:
void set_sound_file(std::unique_ptr<SoundFile> newfile);
void set_sound_file(std::unique_ptr<SoundFile> newfile);
- enum FadeState { NoFading, FadingOn, FadingOff };
+ enum FadeState { NoFading, FadingOn, FadingOff
, FadingPause, FadingResume
};
void set_fading(FadeState state, float fadetime);
FadeState get_fade_state() const
void set_fading(FadeState state, float fadetime);
FadeState get_fade_state() const
@@
-38,9
+38,9
@@
public:
}
void update();
}
void update();
- void set_looping(bool looping)
+ void set_looping(bool looping
_
)
{
{
- this->looping = looping;
+ this->looping = looping
_
;
}
bool get_looping() const
{
}
bool get_looping() const
{