diff options
Diffstat (limited to 'src/audio_out/audio_oss_out.c')
-rw-r--r-- | src/audio_out/audio_oss_out.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index 553425927..3fcc7942f 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_oss_out.c,v 1.58 2002/03/11 09:01:37 f1rmb Exp $ + * $Id: audio_oss_out.c,v 1.59 2002/03/11 19:58:00 jkeil Exp $ * * 20-8-2001 First implementation of Audio sync and Audio driver separation. * Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk @@ -79,7 +79,7 @@ # define AFMT_AC3 0x00000400 #endif -#define AO_OUT_OSS_IFACE_VERSION 3 +#define AO_OUT_OSS_IFACE_VERSION 4 #define AUDIO_NUM_FRAGMENTS 15 #define AUDIO_FRAGMENT_SIZE 8192 @@ -561,6 +561,24 @@ static int ao_oss_set_property (ao_driver_t *this_gen, int property, int value) return ~value; } +static int ao_oss_ctrl(ao_driver_t *this_gen, int cmd, ...) { + oss_driver_t *this = (oss_driver_t *) this_gen; + + switch (cmd) { + + case AO_CTRL_PLAY_PAUSE: + break; + + case AO_CTRL_PLAY_RESUME: + break; + + case AO_CTRL_FLUSH_BUFFERS: + break; + } + + return 0; +} + ao_driver_t *init_audio_out_plugin (config_values_t *config) { oss_driver_t *this; @@ -837,6 +855,7 @@ ao_driver_t *init_audio_out_plugin (config_values_t *config) { this->ao_driver.close = ao_oss_close; this->ao_driver.exit = ao_oss_exit; this->ao_driver.get_gap_tolerance = ao_oss_get_gap_tolerance; + this->ao_driver.control = ao_oss_ctrl; return &this->ao_driver; } |