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
This commit is contained in:
beveloper 2002-07-14 02:38:00 +00:00
parent 07d1d1fff1
commit fc38cfc784
1 changed files with 24 additions and 20 deletions

View File

@ -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