thansk for the suggestion but i can use extern programs like aplay.  The
reason is simple, i'm using an outputstream in java to output the pcm stream
to /dev/dsp.  That's why i can't use the extern program and i can't call
ioctl in my java program.

any configuration tool to define the /dev/dsp ?  or someone can tell me
where in the drivers (ens1371), i can change the default values ?

ex: 44100, 16 bits, signed pcm.

thanks

----- Original Message -----
From: "Tim Goetze" <[EMAIL PROTECTED]>
To: "Survivant" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 9:49 AM
Subject: Re: [Alsa-user] How to set the sample rate with Alsa drivers?


> Today Survivant wrote:
>
> >I'm trying to configure /dev/dsp to play PCM at 44100 16 bits, but i'm
stuck with 8000 8bits.
> >
> >How i can change that to be 44100 16bits defaults values ?
> >
> >ex:
> >
> >cat song.PCM > /dev/dsp    (pcm containt pcm data...)
>
> not that i can say that i know the answer but i jump in while everyone
> else is quiet.
>
> afaik /dev/dsp resets to some default format every time you open it.
> then you have to do some OSS ioctl(2) call/s to set the formats. iirc
> this default usually is 8 bit 22.05 kHz.
>
> i suggest you use aplay instead.
>
> tim
>
>
> _______________________________________________
> Alsa-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to