Page 1 of 1

Analog Audio No Stereo?

Posted: Mon Jun 11, 2018 6:50 am
by tcat
Hi,

How do I set analog audio to output stereo sound on PI3 B?
I use amplified speakers powered from USB.

$ aplay /usr/share/sounds/alsa/Side_Left.wav
$ aplay /usr/share/sounds/alsa/Side_Right.wav

The above plays to both channels on PI3 B, while on PI1 B played left or right.
Many thanks
Tomas

Re: Analog Audio No Stereo?

Posted: Mon Jun 11, 2018 10:46 am
by epoch1970
I've noticed that, too. I don't remember it was that way.
I think if you force 2 channels, e.g. aplay -c 2 ... you get stereo

Re: Analog Audio No Stereo?

Posted: Mon Jun 11, 2018 11:02 am
by tcat
Hi,

Thank you for taking your interest, actually even with `-c2' option

$ aplay -c2 /usr/share/sounds/alsa/Side_Left.wav
$ aplay -c2 /usr/share/sounds/alsa/Side_Right.wav

audibly outputs to both speakers.

$ amixer
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -281 [94%] [-2.81dB] [on]

The above seems same for both PI1 and PI3, I know mono is a bit misleading as per discussion here:
viewtopic.php?t=15028#p154050

Many thanks.
Tomas

Re: Analog Audio No Stereo?

Posted: Mon Jun 11, 2018 7:29 pm
by tcat
Hi,

I just played this mp4 test file using `omxplayer', it is left-right stereo test mp4 stream.
It just plays stereo, so no problem at all.

https://youtu.be/dG3MrGB0JPM

Tomas

Re: Analog Audio No Stereo?

Posted: Mon Jun 11, 2018 7:41 pm
by tcat
Hi,

I have also found these two mp3 files useful to test with omxplayer.
Tarball will extract to Downloads folder.

$ tar -xzf sounds.tgz
$ omxplayer ~/Down*/left.mp3
$ omxplayer ~/Down*/right.mp3

Tomas