Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO-F429ZI_LCDTS_demo_richard
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)
