OSS + KDE arts

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, cesium

New Member
Posts: 1
Joined: Wed Nov 26, 2008 10:51 am

OSS + KDE arts

Postby miandr » Wed Nov 26, 2008 10:56 am

I try to start artsd and get message

Code: Select all

$ artsd -l 0 -D /dev/oss/envy24ht0/pcm0
artsd version is 1.5.10
gsl: using Unix98 pthreads directly for mutexes and conditions
autodetecting driver:
 - toss: 4
 - nas: -1
 - jack: -1
 - esd: -1
 - null: -1
 - oss: 10
... which means we'll default to oss
[artsd:  1779] parallel startup detected: sleeping
unix_connect: can't connect to server (unix:/tmp/ksocket-zed/falkor.shtrih.local-06ed-492d294e)
[artsd:  1779] SoundServerStartup --> got lock
device capabilities: revision2 realtime trigger mmap
file audioiooss.cc: line 121 (int Arts::AudioIOOSS::ossBits(int)): assertion failed: (format == AFMT_U8 || format == AFMT_S16_LE || format == AFMT_S16_BE)
Error while initializing the sound driver:
unknown format given by driver (_format = -1, asked driver to give 16, got 4096)

what does it mean?
FreeBSD 7-stable, KDE 3.5.10, oss-4.0.b1016_1, M Audio Revolution 5.1

Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby cesium » Wed Nov 26, 2008 2:22 pm

IIRC, the card is question supports only 32 bit input/output format. OSS doesn't attach vmix by default, since this card is supposedly "professional". arts is asking for AFMT_S16_LE (16 bit little endian) format, but OSS returns AFMT_S32_LE format (only one supported). arts bombs.

The solution would be to attach vmix to the card, so it can do sample conversion. Follow this guide to build OSS v4.1rc2 (from mercurial or testing source), and use the "vmixctl attach /dev/dsp" command (as root) to have vmix attach to the card. After that, arts should work. (If you are using a recent FreeBSD-stable, vmix will also be able to mix multiple clients on its own without needing arts).

Return to “BSD”

Who is online

Users browsing this forum: No registered users and 1 guest