libsaria: Add a VOLUME callback
This will be triggered whenever the volume changes through the libsaria class.
This commit is contained in:
parent
ef2b716047
commit
5a8cafa4d8
|
@ -4,6 +4,7 @@
|
|||
enum callback_t {
|
||||
PLAY,
|
||||
PAUSE,
|
||||
VOLUME,
|
||||
};
|
||||
|
||||
#endif /* LIBSARIA_CALLBACKS_H */
|
||||
|
|
|
@ -19,4 +19,5 @@ void Libsaria::load(string filepath)
|
|||
void Libsaria::set_volume(double volume)
|
||||
{
|
||||
audio.set_volume(volume);
|
||||
trigger_callback(VOLUME);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue