[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server gnash.h
From: |
Vitaly Alexeev |
Subject: |
[Gnash-commit] gnash/server gnash.h |
Date: |
Sat, 27 May 2006 18:20:28 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch:
Changes by: Vitaly Alexeev <address@hidden> 06/05/27 18:20:28
Modified files:
server : gnash.h
Log message:
added some sound_handler methods
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/server/gnash.h.diff?tr1=1.29&tr2=1.30&r1=text&r2=text
Patches:
Index: gnash/server/gnash.h
diff -u gnash/server/gnash.h:1.29 gnash/server/gnash.h:1.30
--- gnash/server/gnash.h:1.29 Thu May 25 12:08:14 2006
+++ gnash/server/gnash.h Sat May 27 18:20:28 2006
@@ -405,7 +405,19 @@
// gnash calls this when it wants you to play the defined sound.
//
// loop_count == 0 means play the sound once (1 means play it twice,
etc)
- virtual void play_sound(int sound_handle, int loop_count /* ,
volume, pan, etc? */) = 0;
+ virtual void play_sound(int sound_handle, int loop_count, int
secondOffset) = 0;
+
+ // stops all sounds currently playing in a SWF file without
stopping the playhead.
+ // Sounds set to stream will resume playing as the playhead moves
over the frames they are in.
+ virtual void stop_all_sounds() = 0;
+
+ // returns the sound volume level as an integer from 0 to 100,
+ // where 0 is off and 100 is full volume. The default setting is
100.
+ virtual int get_volume(int sound_handle) = 0;
+
+ // A number from 0 to 100 representing a volume level.
+ // 100 is full volume and 0 is no volume. The default setting is
100.
+ virtual void set_volume(int sound_handle, int volume) = 0;
// Stop the specified sound if it's playing.
// (Normally a full-featured sound API would take a