1 /******************************************************************************
5 Copyright 1995-1999, Be Incorporated
6 This file may be used under the terms of the Be Sample Code License.
8 ******************************************************************************/
9 #ifndef _R3_MEDIA_DEFS_H
10 #define _R3_MEDIA_DEFS_H
12 #include <SupportDefs.h>
14 #if defined(__cplusplus)
15 # include <MediaDefs.h>
17 /* values for byte_ordering */
18 enum { B_BIG_ENDIAN
, B_LITTLE_ENDIAN
};
20 /* values for sample_format */
29 /* Buffer header for audio server */
31 typedef struct audio_buffer_header
{
33 int32 subscriber_count
;
37 bigtime_t sample_clock
;
38 } audio_buffer_header
;
41 #define B_MEDIA_LEVEL B_REAL_TIME_PRIORITY
43 #define B_NO_CHANGE (-1)
46 Subscriber IDs and special values
49 #define B_NO_SUBSCRIBER_ID ((subscriber_id)-1)
50 #define B_NO_SUBSCRIBER_NAME "not subscribed"
52 #define B_SHARED_SUBSCRIBER_ID ((subscriber_id)-2)
53 #define B_SHARED_SUBSCRIBER_NAME "shared subscriber"
56 Values for sound files and audio streams
60 /* Audio device codes for BAudioSubscriber's
61 * Get/SetVolume() and EnableDevice() calls
86 #endif /* #ifndef _R3_MEDIA_DEFS_H */