The GStreamer code should be protected everywhere with #ifdef's so that
the library will still build without GStreamer support.
return 1;
case gestalt_Sound:
+#ifdef GSTREAMER_SOUND
return 1;
+#else
+ return 0;
+#endif
/* Unsupported capabilities */
case gestalt_SoundVolume:
{
VALID_SCHANNEL(chan, return);
+#ifdef GSTREAMER_SOUND
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
glk_data->schannel_list = g_list_delete_link(glk_data->schannel_list, chan->schannel_list);
chan->magic = MAGIC_FREE;
g_free(chan);
+#endif
}
/**
{
VALID_SCHANNEL_OR_NULL(chan, return NULL);
+#ifdef GSTREAMER_SOUND
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
GList *retnode;
*rockptr = glk_schannel_get_rock(retval);
return retval;
+#else
+ return NULL;
+#endif /* GSTREAMER_SOUND */
}
/**