Added draft docs for new functions and gestalt selectors
[projects/chimara/chimara.git] / libchimara / schannel.h
index 8970c97bcddb5390411f1019483929dc0eab37a1..dd77f1a069cfd0268cf5ef7ed122293c70ddd48e 100644 (file)
@@ -5,6 +5,7 @@
 #include <glib.h>
 #include "glk.h"
 #include "gi_dispa.h"
+#include "chimara-glk.h"
 #ifdef GSTREAMER_SOUND
 #include <gst/gst.h>
 #endif
@@ -17,11 +18,20 @@ 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;
+       
 #ifdef GSTREAMER_SOUND
        /* Each sound channel is represented as a GStreamer pipeline.  */
-       GstElement *pipeline, *source, *typefind, *decode, *filter, *sink;
+       GstElement *pipeline, *source, *typefind, *demux, *decode, *convert, *filter, *sink;
 #endif
 };
 
-#endif
\ No newline at end of file
+#endif