At 21:57 2006-01-14, you wrote:
On Sat, Jan 14, 2006 at 09:15:54PM +0100, Marcin Wilk wrote:
> Hello!
>
> At first, here are some LOG files that may help:
> dmesg: http://nicram.sytes.net/openbsd/dmesg.txt
> audioctl -a: http://nicram.sytes.net/openbsd/audioctl.txt
> mixerctl -a: http://nicram.sytes.net/openbsd/mixerctl.txt
>
> My system is OpenBSD release 3.8 with generic kernel on AMD64
> platform (AMD Sempron 2500+ 64bit).
> Sound card that i got is Creative Labs SoundBlaster PCI 128 (4
> speakers version on CT588 chipset).
>
> The problem is that when i play music with Mplayer (on KDE using
> GMPlayer) it works fine, tot he moment when KDE play some systems
> sound (when warning window appear or something).
> If it happend, them Mplayer can't play audio files & present error
> windows: http://nicram.sytes.net/openbsd/maplayer2.png ([AO SUN]
> Can't open audio device /dev/audio, Device busy -> nosound.).
> If i will wait some time (30-60 seconds) then it may play again
> without problems.
> Ahh about mplayer.. Everytime i'm start gmplayer or whan i open
> anything this message is appear:
> http://nicram.sytes.net/openbsd/mplayer-start.png .
>
> Another nice thing is with XMMS. When i set it to use SUN audio
> driver than same problem like with Mplayer appear.
> But sometimes i may solve it.. by seting XMMS to use eSound driver.
> But sometimes it don't help, but make XMMS freeze like that for many
> minutes: http://nicram.sytes.net/openbsd/xmms-freeze.png .
>
> I have made ps auxw save when it is freezed:
> http://nicram.sytes.net/openbsd/xmms-freeze.txt .
>
> Other info that may help:
> Using standard installation. KDE & all other software is installed
> from packages from official FTP.
>
> I thionk that there is no fullduplex support for this sound card on
> OpenBSD.If i'm right the questin is: will it be done some day? or
> there is no chance for that? (i understand that it's not important
> for this OS).
>
> Best Regards
> Marcin Wilk
>
I might be wrong, but it seems to be normal behaviour. It is not
possible (as far as i know) that more than one application opens the
audio device.
To handle this, there are several audio daemons that provide access from
more than one application to a single soundcard (and mix them). Some
common used ones are artsd on KDE and esd (I prefer this one, because
it's small and does not use so much cpu). Gnome has it's own I guess.
I bet if you do a "pkill artsd", the problems with mplayer and xmms are
gone (artsd frees the sound device after a specific amount of time, that
is your 30-60 seconds).
A better solution is to configure mplayer, xmms and other apps to use
arts (Kde apps do this by default). There is a plugin available for
xmms. mplayer can also be configured, see it's manpage...
Tobias
Ahm. thanks You for explanation.
I will use arts or something then.
Best Regards
Marcin Wilk