summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-04-03 16:10:46 +0200
committerReinhard Panhuber <[email protected]>2021-04-03 16:10:46 +0200
commit475badd0873dda58b507d3dfe5ab74957fcaa3c0 (patch)
treeadd54f472feeb348e2b8a02b2523585eb1b238c7 /src/class
parent5eb893011c78d2f1e91301de2db6df48e1cb2fdc (diff)
Add missing #defines in uac2_headset example
Diffstat (limited to 'src/class')
-rw-r--r--src/class/audio/audio_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index a39a030e6..8e4f9d218 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -949,7 +949,7 @@ static uint16_t audiod_encode_type_I_pcm(uint8_t rhport, audiod_interface_t* aud
nBytesPerFFToSend = tu_min16(nBytesPerFFToSend, capPerFF);
// Round to full number of samples (flooring)
- nBytesPerFFToSend = (nBytesPerFFToSend / audio->n_channels_per_ff_tx) * audio->n_channels_per_ff_tx;
+ nBytesPerFFToSend = (nBytesPerFFToSend / nBytesToCopy) * nBytesToCopy;
// Encode
void * src;