[alsa-devel] Sound streaming application: which device to use?

Pavel Hofman pavel.hofman at insite.cz
Wed Jun 10 12:02:10 CEST 2009

Lex Wassenberg wrote:
> On Wed, Jun 10, 2009 at 4:42 AM, Lee Revell<rlrevell at joe-job.com> wrote:
>> On Tue, Jun 9, 2009 at 10:01 AM, Lex Wassenberg<lex.wassenberg at gmail.com> 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


More information about the Alsa-devel mailing list