alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: GitHub issues - edited <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: aplay: playing mono audio file alteres pulseaudio default Master left or right volume level
Date: Wed, 16 Sep 2020 15:07:45 +0200 (CEST)	[thread overview]
Message-ID: <20200916130745.52366F801F7@alsa1.perex.cz> (raw)
In-Reply-To: <1600261659086740971-webhooks-bot@alsa-project.org>

alsa-project/alsa-utils issue #55 was edited from maxmbed:

### Description

I am encountering an unexpected behaviour with pulse audio master volume in my application. 

If I set for example left channel to 100% and right channel 0%, and play mono audio file (i.e. audio file with 1 channel only), then I would expect to hear only the audio file on left channel.

The actual behaviour in the example of above is when playing the audio file, the Master volume right channel will be automatically adjusted to 50%. If play again it increases to 75% and so on. 

This issue happens also with other R/L volume level, the case of above is just an example.

**Important to note the case does not happen with stereo audio file** where audio sounds on left only channel as we can expected.

### Steps to repeat issue:

(a) Set mixer Lch to 100%, Rch to 0%
```
$ amixer -D default sset Master 65535,0
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65535 [100%] [on]
  Front Right: Playback 0 [0%] [on]
```

(b) Play mono audio file
```
$ aplay -D default ringtone.wav
Playing WAVE 'ringtone.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
```


### Request
(1) Is it by design expected ? 
(2) Is there a way to prevent this phenomenon (command option) ?

Issue URL     : https://github.com/alsa-project/alsa-utils/issues/55
Repository URL: https://github.com/alsa-project/alsa-utils

       reply	other threads:[~2020-09-16 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1600261659086740971-webhooks-bot@alsa-project.org>
2020-09-16 13:07 ` GitHub issues - edited [this message]
     [not found] <1600422797261694908-webhooks-bot@alsa-project.org>
2020-09-18  9:53 ` aplay: playing mono audio file alteres pulseaudio default Master left or right volume level GitHub issues - edited
     [not found] <1600262404591196060-webhooks-bot@alsa-project.org>
2020-09-16 13:20 ` GitHub issues - edited
     [not found] <1600262375795070887-webhooks-bot@alsa-project.org>
2020-09-16 13:19 ` GitHub issues - edited
     [not found] <1600261734400299072-webhooks-bot@alsa-project.org>
2020-09-16 13:09 ` GitHub issues - edited
     [not found] <1600261627896457911-webhooks-bot@alsa-project.org>
2020-09-16 13:07 ` GitHub issues - opened

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200916130745.52366F801F7@alsa1.perex.cz \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).