File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ class SPDIFStream16Bit2Channels : public AudioStreamX {
320
320
(uint32_t )(((bmc_tab[*p] << 16 ) ^ bmc_tab[*(p + 1 )]) << 1 ) >> 1 ;
321
321
322
322
p += 2 ;
323
+ result +=2 ;
323
324
spdif_ptr += 2 ; // advance to next audio data
324
325
325
326
if (spdif_ptr >= &spdif_buf[SPDIF_BUF_ARRAY_SIZE]) {
@@ -328,12 +329,12 @@ class SPDIFStream16Bit2Channels : public AudioStreamX {
328
329
// set block start preamble
329
330
((uint8_t *)spdif_buf)[SYNC_OFFSET] ^= SYNC_FLIP;
330
331
331
- result += out->write ((uint8_t *)spdif_buf, sizeof (spdif_buf));
332
+ out->write ((uint8_t *)spdif_buf, sizeof (spdif_buf));
332
333
spdif_ptr = spdif_buf;
333
334
}
334
335
}
335
336
336
- return result / 4 ;
337
+ return result;
337
338
}
338
339
339
340
protected:
You can’t perform that action at this time.
0 commit comments