Commit ffd4a01e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DTS: fix mono and dual-mono samples playback

parent 13672537
...@@ -665,10 +665,12 @@ static int SyncInfo( const uint8_t *p_buf, ...@@ -665,10 +665,12 @@ static int SyncInfo( const uint8_t *p_buf,
{ {
case 0x0: case 0x0:
/* Mono */ /* Mono */
*pi_channels = 1;
*pi_channels_conf = AOUT_CHAN_CENTER; *pi_channels_conf = AOUT_CHAN_CENTER;
break; break;
case 0x1: case 0x1:
/* Dual-mono = stereo + dual-mono */ /* Dual-mono = stereo + dual-mono */
*pi_channels = 2;
*pi_channels_conf = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | *pi_channels_conf = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT |
AOUT_CHAN_DUALMONO; AOUT_CHAN_DUALMONO;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment