libsaria: Add a VOLUME callback

This will be triggered whenever the volume changes through the libsaria
class.
This commit is contained in:
Bryan Schumaker 2011-09-03 10:08:54 -04:00
parent ef2b716047
commit 5a8cafa4d8
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
enum callback_t {
PLAY,
PAUSE,
VOLUME,
};
#endif /* LIBSARIA_CALLBACKS_H */

View File

@ -19,4 +19,5 @@ void Libsaria::load(string filepath)
void Libsaria::set_volume(double volume)
{
audio.set_volume(volume);
trigger_callback(VOLUME);
}