haiku/headers/private/audio/R3MediaDefs.h
Stephan Aßmus b3d94504c2 * added a bunch of drivers by Siarzhuk Zharski
-> a USB Mass Storgage module (SCSI bus manager add-on)
-> a SiS 7018 AC97 driver (uses "old" audio driver interface)
-> a USB Serial driver
-> a USB Vision driver and media add-on (Haupauge WinTV USB)
* moved R3MediaDefs.h from usb_audio driver to common place
  headers/private/audio (also used by SiS 7018 driver)
* added TV tuner frequency defines to data/settings/media/usb_vision

Some of these drivers are in unfinished state, particularily the
USB Vision driver, the VideoProducer doesn't seem to use it yet,
the USB Mass Storage module is known to work though, it also includes
add-ons for itself that add support for some "special" hardware, these
are not integrated with the Jamfile build system though.

Also I didn't much much time with the "CVS package" targets, the
ReadMes are not added, someone with more knowledge about this could
add them...

None of this stuff is added to the Haiku image, it is simply included
to be maintained in the Haiku tree from now on.

* fixed a bug in Video Producer sample inherited from Be Sample
  code - the timing from the time source was not really used,
  on some systems this could cause in the producer not waking
  up at the correct time if the system time and audio card time
  are drifting apart



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-29 09:54:03 +00:00

87 lines
1.7 KiB
C

/******************************************************************************
File: MediaDefs.h
Copyright 1995-1999, Be Incorporated
This file may be used under the terms of the Be Sample Code License.
******************************************************************************/
#ifndef _R3_MEDIA_DEFS_H
#define _R3_MEDIA_DEFS_H
#include <SupportDefs.h>
#include <Errors.h>
#if defined(__cplusplus)
# include <MediaDefs.h>
#else
/* values for byte_ordering */
enum { B_BIG_ENDIAN, B_LITTLE_ENDIAN };
/* values for sample_format */
enum {
B_UNDEFINED_SAMPLES,
B_LINEAR_SAMPLES,
B_FLOAT_SAMPLES,
B_MULAW_SAMPLES
};
#endif
/* Buffer header for audio server */
typedef struct 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;
#define B_MEDIA_LEVEL B_REAL_TIME_PRIORITY
#define B_NO_CHANGE (-1)
/* ================
Subscriber IDs and special values
================ */
#define B_NO_SUBSCRIBER_ID ((subscriber_id)-1)
#define B_NO_SUBSCRIBER_NAME "not subscribed"
#define B_SHARED_SUBSCRIBER_ID ((subscriber_id)-2)
#define B_SHARED_SUBSCRIBER_NAME "shared subscriber"
/* ================
Values for sound files and audio streams
================ */
/* Audio device codes for BAudioSubscriber's
* Get/SetVolume() and EnableDevice() calls
*/
enum {
B_CD_THROUGH = 0,
B_LINE_IN_THROUGH,
B_ADC_IN,
B_LOOPBACK,
B_DAC_OUT,
B_MASTER_OUT,
B_SPEAKER_OUT,
B_SOUND_DEVICE_END
};
/* ADC input codes */
enum {
B_CD_IN,
B_LINE_IN,
B_MIC_IN
};
enum {
B_DAC_STREAM = 2354,
B_ADC_STREAM
};
#endif /* #ifndef _R3_MEDIA_DEFS_H */