Hallo,
Dale Harris hat gesagt: // Dale Harris wrote:

> I ran into a curious problem, but I'm not sure why it doesn't work.  I
> was converting some small WAVs to Ogg, for example:
> 
> http://www.wiseacre-gardens.com/buttons/pics/sounds/foghorn06.wav
> 
> If you just do the default "oggenc forhorn06.wav" you get:
> 
> $ ogginfo foghorn06.ogg
> Processing file "foghorn06.ogg"...
> 
> New logical stream (#1, serial: 602cb0b0): type vorbis
> Vorbis headers parsed for stream 1, information follows...
> Version: 0
> Vendor: Xiph.Org libVorbis I 20020717 (1.0)
> Channels: 1
> Rate: 11025
> 
> Nominal bitrate: 29.000000 kb/s
> Upper bitrate not set
> Lower bitrate not set
> Vorbis stream 1:
>         Total data length: 33118 bytes
>         Playback length: 0m:07s
>         Average bitrate: 33.487425 kbps
> Logical stream 1 ended
> 
> 
> But if try and play it, I get:
> 
> $ ogg123 foghorn06.ogg
> 
> Audio Device:   Advanced Linux Sound Architecture (ALSA) output
> 
> Playing: foghorn06.ogg
> ALSA snd_pcm_hw_params_set_period_size error: Invalid argument
> Error: Cannot open device alsa09.

Thsi has nothing to do with the sample rate, but with the period size.
There also could be an error "snd_pcm_hw_params_set_rate", that would
be samplerate-related. 

Actually I now tried ogg123's alsa support for the first time and I
get this same error regardless of what file I try to play. The ogg123
manpage reveals, that ogg123 can only set the card to use by number,
like "ogg123 -d alsa09 -o card:0 -o dev:0 ..."

This is bad and actually it should be possible to specify device by
name, because that's what the documentation for libao says. (libao is
used by ogg123 for audio output). But it isn't possible, so you can
either wait until the Ogg developers fix this, use ALSA's
oss-emulation or try playing with the buffer size option. I use
OSS-emu.

ciao
-- 
 Frank Barknecht                               _ ______footils.org__


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to