Il y avait des problèmes dans la libraire...
Fork of USBDEVICE by
Diff: USBAudio/USBAudio.h
- Branch:
- master
- Revision:
- 4:50ec00aa4515
- Parent:
- 3:d9c7334e2183
--- a/USBAudio/USBAudio.h Wed Feb 15 09:48:15 2017 +0100 +++ b/USBAudio/USBAudio.h Tue Mar 28 11:00:57 2017 +0200 @@ -123,11 +123,18 @@ */ bool write(uint8_t * buf); + /** Audio Jitter value*/ + enum AudioSampleCorrectType { + RemoveOneSample = -1, + NoCorrection = 0, + AddOneSample = 1 + }; /** * Write packet in endpoint fifo. assuming tx fifo is empty * @param buf pointer on the audio packet which will be sent - */ - void writeSync(uint8_t *buf); + * @param jitter_nb : AudioSampleCorrecttype + **/ + void writeSync(uint8_t *buf, AudioSampleCorrectType jitter_nb = NoCorrection ); /** * Write and read an audio packet at the same time (on the same frame)