diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-12-01 22:54:21 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-12-01 22:54:21 +0100 |
commit | 8ed7d596716686883b5baaba60d7f764791c904e (patch) | |
tree | 8360159c2fa0a3f27051ca2ce9ab8262a37f6aab /usb-fast-audio-source/fast_source.h | |
parent | 1a23c27e71edc61acb2425f237a14ca0f90e7a5e (diff) |
initial checkin of non-complete 'fast usb audio source' test program
the idea is to explore how various OSs USB-Audio drivers react if you
present them with an audio device of 512kHz or 1MHz sampling freq.
Diffstat (limited to 'usb-fast-audio-source/fast_source.h')
-rw-r--r-- | usb-fast-audio-source/fast_source.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usb-fast-audio-source/fast_source.h b/usb-fast-audio-source/fast_source.h new file mode 100644 index 0000000..1fc0b2b --- /dev/null +++ b/usb-fast-audio-source/fast_source.h @@ -0,0 +1,18 @@ + +#include <stdint.h> + +#define AUDDLoopRecDriver_SAMPLERATE 512000 +#define AUDDLoopRecDriver_NUMCHANNELS 2 +#define AUDDLoopRecDriver_BYTESPERSAMPLE 2 + +#define AUDDLoopRecDriver_SAMPLESPERFRAME (AUDDLoopRecDriver_SAMPLERATE / 16384 \ + * AUDDLoopRecDriver_NUMCHANNELS) + +#define AUDDLoopRecDriver_BYTESPERFRAME (AUDDLoopRecDriver_SAMPLESPERFRAME * \ + AUDDLoopRecDriver_BYTESPERSAMPLE) + +#include <usb/common/core/USBGenericRequest.h> + +void fastsource_init(void); +void fastsource_start(uint8_t epnr); +void fastsource_req_hdlr(const USBGenericRequest *request); |