From: bugtrack@alsa-project.org Subject: [ALSA - utils 0000398]: aplay produces no sound on short wav files through dmix Date: Sun, 20 Mar 2005 15:49:48 +0100 Message-ID: <3cc109bace3289fce6d47bc1a1b03716@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 0116A259 for ; Sun, 20 Mar 2005 15:49:48 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: raveng Assigned To: ====================================================================== Project: ALSA - utils Issue ID: 398 Category: aplay/arecord Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 07-19-2004 16:21 CEST Last Modified: 03-20-2005 15:49 CET ====================================================================== Summary: aplay produces no sound on short wav files through dmix Description: Wav files shorter than about 0.157 seconds produce no sound under aplay and dmix. No error message is given, and it looks like it should be working. If I add silence to the file to make the duration longer, it plays fine. Also, if I direct aplay to use the hardware directly, it plays the original file just fine. Tested on both ens1371 and i810 audio. Other media players (xmms, mplayer, and artsplay) all play the same file correctly with dmix. It is only the ALSA-provided aplay that seems to have difficulty. ====================================================================== ---------------------------------------------------------------------- leahcim - 12-07-04 03:58 ---------------------------------------------------------------------- Reducing buffer_size in asound.conf to some small value (eg. 2K for /usr/share/sounds/pop.wav, and 1K for /usr/share/sounds/KDE_Click.wav) made the sounds audible again. Obviously this will make things underrunny, so I instead opted to increase the length of the sound files. I have a useful shell script that consists of the line: (sox -p "$@" -t raw -r 44100 -w -s -c2 -;dd if=/dev/zero bs=1024 count=40 2>/dev/null)|aplay -M -N -q - -f cd & ...and point the KDE system notification external player at the script (I don't use artsd). The number 40 above isn't an exact figure; there might still be -really- short sounds that still won't play. The 'aplay -R125000' hack didn't make a difference for me until I used smaller numbers. Hmm, perhaps that will be a nicer alternative to my dd hack... ---------------------------------------------------------------------- jdthood - 03-20-05 15:49 ---------------------------------------------------------------------- Is this still a problem in aplay 1.0.8? Issue History Date Modified Username Field Change ====================================================================== 07-19-04 16:21 raveng New Issue 07-28-04 02:08 lesieur Note Added: 0001478 12-07-04 03:24 leahcim Issue Monitored: leahcim 12-07-04 03:58 leahcim Note Added: 0002745 03-20-05 15:49 jdthood Note Added: 0004095 ====================================================================== ------------------------------------------------------- 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