summaryrefslogtreecommitdiff
path: root/usb-fast-audio-source/fast_source.h
blob: d448b150012938545bcb8bfde3702a30527a8fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <stdint.h>

#define AUDDLoopRecDriver_SAMPLERATE	640000
#define	AUDDLoopRecDriver_NUMCHANNELS	2
#define AUDDLoopRecDriver_BYTESPERSAMPLE 2

#define AUDDLoopRecDriver_SAMPLESPERFRAME (AUDDLoopRecDriver_SAMPLERATE / 5000 \
					   * AUDDLoopRecDriver_NUMCHANNELS)

#define AUDDLoopRecDriver_BYTESPERFRAME (AUDDLoopRecDriver_SAMPLESPERFRAME * \
					 AUDDLoopRecDriver_BYTESPERSAMPLE)

#include <usb/common/core/USBGenericRequest.h>

void fastsource_init(void);
void fastsource_start(void);
void fastsource_req_hdlr(const USBGenericRequest *request);
personal git repositories of Harald Welte. Your mileage may vary