[EMAIL PROTECTED] writes:

> I am running OpenBSD 4.3 generic, and cannt change the playing
> rate with audioctl to play mp3s with mpg123.

http://www.openbsd.org/faq/faq13.html#playaudio

,----
| Some sound devices can play only fixed sample rates. For
| instance, you may be trying to play a 22050 Hz file through a
| sound chip which is locked at 48000 Hz.
| 
| There are audio utilities in the packages and ports collection
| that tackle this problem by performing rate resampling. For
| example, x11/mplayer has a "-srate" switch to specify a desired
| output sample rate. You would set that to the rate your sound
| device is using. KDE's artsd and some games support similar
| options. Read the documentation of your specific audio
| application to find out whether it supports rate resampling.
`----

Right now the only way to check your supported rates is by trial
and error, for example

% audioctl play.rate=8000
audioctl: set failed: Invalid argument

% audioctl play.rate=48000
play.rate: -> 48000

It might be nice to add the list of supported rates to audioctl.

Reply via email to