[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libao/ogg123 sampling rate problem



hi all, 

just got a new ElCheapo Soundcard (SiS 7012, i810_audio.o) which chats
this during initialization:

  Intel 810 + AC97 Audio, version 0.21, 15:36:07 Jul 13 2002
  PCI: Found IRQ 5 for device 00:02.7
  PCI: Sharing IRQ 5 with 00:0d.0
  i810: SiS 7012 found at IO 0xd400 and 0xd800, IRQ 5
  i810_audio: Audio Controller supports 2 channels.
  ac97_codec: AC97 Audio codec, id: 0x414c:0x4326 (Unknown)
  i810_audio: only 48Khz playback available.
  i810_audio: AC'97 codec 0 supports AMAP, total channels = 2

so far so good. when i use play(1) to playback a WAV file, sox
notifies me with the following message

  sox: Unable to set audio speed to 44100 (set to 48000)

which doesn't impact the operation of sox during playback... it works.

however, when i try to use a libao-based program such as ogg123 to
playback a song through OSS (/dev/dsp) it fails:

  Playing: /music/rock/smashing_pumpkins/squashed_zucchini/02-zero.ogg
  Artist: Smashing Pumpkins
  Album: Squashed Zucchini
  Title: Zero
  Track number: 2
  libao - OSS cannot set rate to 44100
  Error: Cannot open device oss.

  zsh: segmentation fault  ogg123 /music/new/smashing_pumpkins/
  squashed_zucchini/02-zero.ogg

checking the ogg123 manpage as well as /etc/libao.conf, i can't get
this to work other than:

ogg123 -d wav -f - /music/rock/smashing_pumpkins/squashed_zucchini/* \
  | play -t wav -

which is a performance hog and a bit of a pain!

maybe you got some clues...

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
friends help you move. real friends help you move bodies.

Attachment: pgp7WYnoTA328.pgp
Description: PGP signature


Reply to: