summaryrefslogtreecommitdiff
path: root/usb-fast-audio-source/fast_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'usb-fast-audio-source/fast_source.h')
-rw-r--r--usb-fast-audio-source/fast_source.h18
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);
personal git repositories of Harald Welte. Your mileage may vary