X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fschannel.h;h=a0eba8715520ac91d800fd8c9614c563397d32f0;hb=59f3bc1e4f21377c362c1f497fb225711127d7a0;hp=4a4b1fdcfea5964d184f4fb5746a936c127bbc90;hpb=993f3a070baa8131ddd159a55d5cde43a91d2154;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/schannel.h b/libchimara/schannel.h index 4a4b1fd..a0eba87 100644 --- a/libchimara/schannel.h +++ b/libchimara/schannel.h @@ -5,6 +5,7 @@ #include #include "glk.h" #include "gi_dispa.h" +#include "chimara-glk.h" #ifdef GSTREAMER_SOUND #include #endif @@ -17,14 +18,26 @@ struct glk_schannel_struct /* Pointer to the list node in the global sound channel list that contains this sound channel */ GList *schannel_list; + /* Pointer to the GTK widget this sound channel belongs to, for convenience */ + ChimaraGlk *glk; + /* Resource number and notification ID of last played sound */ + glui32 resource, notify; /* How many times to repeat the last sound played (-1 = forever) */ glui32 repeats; + /* Whether channel is paused */ + gboolean paused; + /* Volume change information */ + double target_volume; + long target_time_sec, target_time_usec; + guint volume_timer_id; + glui32 volume_notify; + #ifdef GSTREAMER_SOUND /* Each sound channel is represented as a GStreamer pipeline. */ GstElement *pipeline, *source, *typefind, *demux, *decode, *convert, *filter, *sink; #endif }; -#endif \ No newline at end of file +#endif