#ifndef SOUND_H #define SOUND_H #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_ALSA #include #else #include #include #include #endif gboolean sound_timer (void *); class SoundError{}; class Sound { public: Sound (); ~Sound (); int volume (); void volume (int); private: #ifdef HAVE_ALSA snd_mixer_t * mixer; snd_mixer_elem_t *pcm_element; #else int sound_handle; #endif }; #endif