#include #include #include #include #include #include "sound_options.h" class SoundScreen : public PluginClassHandler , public SoundOptions { public: SoundScreen (CompScreen *); ~SoundScreen (); GstElement *pipeline; public: void playSound (CompString &); gboolean busCall (GstBus *, GstMessage *, void *); }; #define SOUND_SCREEN(s) \ SoundScreen *ss = SoundScreen::get (s); class SoundWindow : public PluginClassHandler , public WindowInterface { public: SoundWindow (CompWindow *w); CompWindow *window; public: void windowNotify (CompWindowNotify); bool shouldSound (); }; #define SOUND_WINDOW(w) \ SoundWindow *sw = SoundWindow::get (w); class SoundPluginVTable : public CompPlugin::VTableForScreenAndWindow { public: bool init (); };