MOC with OSS and without vmix

Subj don't work in stable and development version MOC. Then i try "modprobe vmix" MOC normaly started and if i type "rmmod vmix" it's paste error:

[cnupt@linux ~]$ mocp
Running the server...
Trying OSS...

FATAL_ERROR: No valid sound driver

FATAL_ERROR: Server exited

Mplayer works in both situations.

Please provide mocp_server_log file in case when it's not working. You can generate it by running mocp -D first killing all mocp processes.

--
Damian Pietras - MOC developer

[cnupt@linux ~]$ mocp -D
Loading plugins from /usr/lib/moc/decoder_plugins...
Loading plugin libffmpeg_decoder...
OK
Loading plugin libflac_decoder...
OK
Loading plugin libmp3_decoder...
OK
Loading plugin libmusepack_decoder...
OK
Loading plugin libsndfile_formats_decoder...
OK
Loading plugin libspeex_decoder...
OK
Loading plugin libvorbis_decoder...
OK
Running the server...
Trying OSS...

FATAL_ERROR: No valid sound driver

FATAL_ERROR: Server exited

[cnupt@linux ~]$ cat mocp_server_log
Jul 19 19:19:29.111730: server.c:668 server_error(): ERROR: Can't read from mixer
Jul 19 19:19:29.111956: server.c:560 add_event_all(): No events have been added because there are no clients.
Jul 19 19:19:29.112076: oss.c:67 open_dev(): Audio device opened
Jul 19 19:19:29.112094: server.c:668 server_error(): ERROR: No known format supported by the audio device.
Jul 19 19:19:29.112106: server.c:560 add_event_all(): No events have been added because there are no clients.
Jul 19 19:19:29.112803: common.c:56 fatal(): FATAL ERROR: No valid sound driver

Can you compile run and paste the output of this program: http://users.daper.net/~daper/pub/oss_formats.c

Just download it and type make oss_formats.

--
Damian Pietras - MOC developer

[cnupt@linux ~]$ ./oss_formats
SNDCTL_DSP_GETFMTS...
oss_formats: oss_formats.c:56: query: Assertion `fd >= 0' failed.
zsh: abort ./oss_formats

Please try the following patch (applywith patch -p0 < file.patch:
ftp://ftp.daper.net/pub/soft/moc/patches/moc-2.4.2-2.5.0-alpha2-oss-vmix-fix-1.patch

This is not a real solution, but a workaround and should work.

--
Damian Pietras - MOC developer

Thanks, it's work now. You fix this in next devel or stable release? And other question: i need sofware mixer for moc+oss, it's practicably?

Yes, it will be fixed in all future releases.

Software mixer isn't so difficult. What MOC displays now in the mixer place?

--
Damian Pietras - MOC developer

http://bayimg.com/jaEEaAabf

May be he display alsa mixer's, but i compile MOC without alsa support and uninstall alsa from system :) Or may be he cut this positions from config:

# OSS Mixer channel: pcm or master
OSSMixerChannel = pcm

# Second OSS Mixer channel: pcm or master
OSSMixerChannel2 = master

But with or without vmix mixer don't work in MOC+OSS.

It's not FIX in present!!! For me options "pcm" or "master" not correctly. In ossmix sound vol changes then i modify "headph" (output for headphones) and then i modify "vmix0-vol" (if i use vmix (software mixer for OSS)). Ossmix command output: http://paste.org.ru/?cqgh2k

Author, fix it please!

i have this trouble too...

music mp3