Skip to contentSkip to conversation

: aplay apparently plays mono wav files using OSS, but plays stereo wav files using ALSA

ALSA - utils 0000849 [email protected] 1 participant 1 message Mar 20, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=849>
======================================================================
Reported By: vapspwi
Assigned To:
======================================================================

Project:                    ALSA - utils
Issue ID:                   849
Category:                   aplay/arecord
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             01-26-2005 20:15 CET
Last Modified:              03-20-2005 13:45 CET

======================================================================
Summary: aplay apparently plays mono wav files using OSS, but
plays stereo wav files using ALSA
Description:
Anytime I play a mono wav file (11, 22, or 44 kHz, 8 or 16 bit) using aplay, the output is routed to all 26 playback channels of my HDSP 9652 card (observed using hdspmixer). Based on some web research, it appears that this is because aplay is using OSS to play the mono wav file. When I play a stereo wav file (11, 22, or 44 kHz, 8 or 16 bit) using aplay, the output is routed only to playback channels 1 and 2 of the HDSP 9652, apparently because aplay is using ALSA to play the stereo wav file.
======================================================================

----------------------------------------------------------------------
tiwai - 01-31-05 19:01
----------------------------------------------------------------------
I guess you meant aplay instead of alsamixer?

Anyway, aplay has nothing to do with OSS. It can't. Never ever.

What is the problem? The behavior to routing the channels depends on the configuration of "plug" layer. As default, only first channels are copied except for mono stream. You can change this policy in your ~/.asoundrc. See the alsa-lib's reference.

----------------------------------------------------------------------
jdthood - 03-20-05 13:45
----------------------------------------------------------------------
This one can be closed.

Issue History
Date Modified Username Field Change
======================================================================

01-26-05 20:15 vapspwi        New Issue                                    
01-26-05 20:16 vapspwi        Issue Monitored: vapspwi                     
01-26-05 23:46 vapspwi        Issue End Monitor: vapspwi                    
01-31-05 19:01 tiwai          Note Added: 0003455                          
03-20-05 13:45 jdthood        Note Added: 0004088                          

======================================================================

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click