From fc38cfc784ad7d6569caf2231a132fe7044cbaf2 Mon Sep 17 00:00:00 2001 From: beveloper Date: Sun, 14 Jul 2002 02:38:00 +0000 Subject: [PATCH] Updated to the API changes introduced by BeOS R4's legacy BeOS R3 sound driver API support. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@205 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/media/OldSoundDriver.h | 44 ++++++++++++++------------ 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/headers/private/media/OldSoundDriver.h b/headers/private/media/OldSoundDriver.h index 697857c16d..ffb236e011 100644 --- a/headers/private/media/OldSoundDriver.h +++ b/headers/private/media/OldSoundDriver.h @@ -2,33 +2,37 @@ #define _OLD_SOUND_DRIVER_H_ /* - * The BeOS R3 style legacy sound card driver interface + * The updated BeOS R3 style legacy sound card driver interface * Assembled from the Be Newsletter, Volume II, Issue 22; June 3, 1998 + * and Be Newsletter, Volume III, Issue 12, March 24, 1999 */ enum { - SOUND_GET_PARAMS = B_DEVICE_OP_CODES_END, - SOUND_SET_PARAMS, - SOUND_SET_PLAYBACK_COMPLETION_SEM, - SOUND_SET_CAPTURE_COMPLETION_SEM, - SOUND_RESERVED_1, /* unused */ - SOUND_RESERVED_2, /* unused */ - SOUND_DEBUG_ON, /* unused */ - SOUND_DEBUG_OFF, /* unused */ - SOUND_WRITE_BUFFER, - SOUND_READ_BUFFER, - SOUND_LOCK_FOR_DMA + SOUND_GET_PARAMS = B_DEVICE_OP_CODES_END, + SOUND_SET_PARAMS, + SOUND_SET_PLAYBACK_COMPLETION_SEM, + SOUND_SET_CAPTURE_COMPLETION_SEM, + SOUND_RESERVED_1, /* unused */ + SOUND_RESERVED_2, /* unused */ + SOUND_DEBUG_ON, /* unused */ + SOUND_DEBUG_OFF, /* unused */ + SOUND_WRITE_BUFFER, + SOUND_READ_BUFFER, + SOUND_LOCK_FOR_DMA, + SOUND_SET_CAPTURE_PREFERRED_BUF_SIZE, + SOUND_SET_PLAYBACK_PREFERRED_BUF_SIZE, + SOUND_GET_CAPTURE_PREFERRED_BUF_SIZE, + SOUND_GET_PLAYBACK_PREFERRED_BUF_SIZE }; typedef struct audio_buffer_header { - int32 buffer_number; - int32 subscriber_count; - bigtime_t time; - int32 reserved_1; - int32 reserved_2; - int32 reserved_3; - int32 reserved_4; -} audio_buffer_header; + int32 buffer_number; + int32 subscriber_count; + bigtime_t time; + int32 reserved_1 + int32 reserved_2; + bigtime_t sample_clock; +} audio_buffer_header enum adc_source { line = 0, cd, mic, loopback