On 1/10/07, Daniel Hartmeier <[EMAIL PROTECTED]> wrote:
> On Wed, Jan 10, 2007 at 12:04:23AM +0530, Siju George wrote:
>
> > There is no other data in the messages file about this.
> > Like which program or process gives this error
> >
> > Could some one please give a hit to trouble shoot it?
>
> Since there is no process name, it must be the kernel.
>
> $ cd /usr/src/sys
> $ find . -type f -name "*.c" | xargs grep "find playback"
> ./dev/pci/azalia.c: printf("can't find playback format\n",
>
> $ apropos azalia
> azalia (4) - Generic High Definition Audio device
> $ man azalia
> ...
>
Thanks a million Danny for this hint :-)
> Something must be trying to access the audio device, if you're not
> intentionally starting a process that you suspect might be doing this,
> maybe change permissions on /dev/audio and see what craps out.
>
I did watch today and found that it happens only when I try to play .ogg files
Mine is an amd64 system.
if I play .ogg files in mplayer, it keeps on playing but I donot hear any voice.
it also complains about little endian and big endian ass you can see below.
===============================================================
$ mplayer bsdtalk090.ogg
MPlayer 1.0pre8-3.3.5 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing bsdtalk090.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 96.0 kbit/13.61% (ratio: 12000->88200)
Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
==========================================================================
ao2: 44100 Hz 1 chans s16le [0x9]
[AO SUN] audio_setup: your card doesn't support 1 channel,
little-endian 16-bit signed int, 44100 Hz samplerate.
AO: [null] 44100Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 20.0 (19.9) of 1005.0 (16:45.0) 0.6%
MPlayer interrupted by signal 2 in module: play_audio
=====================================================================
when I try to play above file in mplayer I get the following message
in /var/log/message
Jan 10 23:13:45 rest /bsd: can't find playback format
the i tried to play the same file with ogg123 and it exits with the
following error.
=====================================================================
$ ogg123 bsdtalk090.ogg
Audio Device: Sun audio driver output
Playing: bsdtalk090.ogg
Ogg Vorbis stream: 1 channel, 44100 Hz
Error: Cannot open device sun.
$
======================================================================
and i get the following messages in /var/log/messages
Jan 10 23:13:45 rest /bsd: can't find playback format
Jan 10 23:14:28 rest last message repeated 2 times
> If you have been intentionally using audio, and noticed nothing wrong
> (except for the messages), maybe simply ignore it (or remove the printf,
> if it bothers you).
>
that would require a recompile of the kernel right?
I tried to convert the file into .wav but it player very fast.
Same is the case with that file when played with "xmms". it plays very fast
But the OpenBSD 4.0 .ogg format release song is played well by both players
And there were no messages in the /var/log/messages file.
========================================================================
$ mplayer song40.ogg
MPlayer 1.0pre8-3.3.5 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing song40.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
==========================================================================
ao2: 44100 Hz 2 chans s16le [0x9]
AO: [sun] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 144.3 (02:24.2) of 144.5 (02:24.5) 2972.7%
=======================================================================
Seems the bsdtalk .ogg file uses channel1 and the OpenBSD .ogg file
uses chanel 2.
how do you make the BSDtalk .ogg file use channel2 ?
Thankyou so much for your valuable time and help :-)
Kind regards
Siju
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies