From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Hofman Subject: Re: Sound streaming application: which device to use? Date: Wed, 10 Jun 2009 12:02:10 +0200 Message-ID: <4A2F84A2.9050503@insite.cz> References: <45c981ab0906040428v3910cbcfq7e3024b23f6653e1@mail.gmail.com> <45c981ab0906090701t209abbc6jda420e4e666c5198@mail.gmail.com> <75b66ecd0906091942vae43f8bq2162fe3832ec424e@mail.gmail.com> <45c981ab0906100242g234bfa08u8137c58bd08b9960@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from server.insite.cz (upc-plzen.insite.cz [84.242.100.8]) by alsa0.perex.cz (Postfix) with ESMTP id F3B6F103802 for ; Wed, 10 Jun 2009 12:02:11 +0200 (CEST) In-Reply-To: <45c981ab0906100242g234bfa08u8137c58bd08b9960@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lex Wassenberg Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Lex Wassenberg wrote: > On Wed, Jun 10, 2009 at 4:42 AM, Lee Revell wrote: >> On Tue, Jun 9, 2009 at 10:01 AM, Lex Wassenberg wrote: >>> Is there nobody that can help me out on the questions above? I figured >>> the answer to question 4 (passing a pointer to an uninitialized >>> integer; I thought the integer was only used for reporting back, which >>> is not true), but all other questions still stand. Nobody?? >> You don't provide enough info. What soundcard? What distro? What is >> the output of "aplay -v file.wav" when file.wav is the same audio >> format your app uses? >> >> Lee >> > > The distro is OpenSuse 10.3 , the soundcard doesn't (or shouldn't) > matter: the application program knows nothing about the soundcard and > it doesn't want to either. It should just use that sound card that is > present on the machine where it runs. I thought that it would be ALSA > that takes care of the particularites of the underlying hardware. > That's why I programmed the device to be "default" or "plughw". > > For the requested output of the aplay program I would first have to > find a wave file with the specific format. > Just use sox, it will convert to any format you need. Details man sox, e.g. sox your.mp3 -r 44100 -b 16 new-44k-16.wav Pavel.