Stable: 2.5.2
Development: 2.6-alpha3
I am a MOC nebie and I am loving it!
Is there a way to make MOC play friendly with other programs in Ubuntu 8.04? It steals all sound. If a program directly use alsa then no other program can be heard. How can MOC use pulseaudio?
golemj
Sat, 2008-05-03 12:08
Permalink
afaik MOC use
afaik MOC use only OSS, ALSA or Jack.
You need to write patch for MOC to use pulseaudio.
Bach
Sat, 2008-05-03 16:48
Permalink
ok
Thanks for letting me know. Anyway, It is not a big problem.
dullboy
Sun, 2010-12-05 08:41
Permalink
Solution, a few years later
I've solved adding these lines to
.moc/config
:# Use OSS for Pulseaudio compatibility (run 'padsp mocp')
SoundDriver = OSS, ALSA, JACK
And then running (or setting a shell alias) MOC as:
padsp mocp
And it works perfectly.
--
Giulio : http://pilv.it
pdw
Sat, 2008-05-03 13:43
Permalink
Instead of looking for
Instead of looking for workarounds, learn linux and fix your issue.
Bach
Sat, 2008-05-03 16:40
Permalink
??
> Instead of looking for workarounds, learn linux and fix your issue.
Well, that was really helpful. Thanks a lot.
hiben
Tue, 2008-05-06 14:36
Permalink
I'm using MOC with ALSA on
I'm using MOC with ALSA on two different systems and have never encountered problems when using other audio-applications.
I guess there are some issues with your soundcard/ALSA-driver that should be resolved. If you really want pulseaudio you could try to set it up via JACK. I had a quick glance at the Pulseaudio documentation a few days ago for other reasons and it seems that JACK can be used as a bridge to Pulseaudio.
daper
Tue, 2008-05-06 19:15
Permalink
It depends on your soundcard
It depends on your soundcard and configuration. On my laptop there is a problem, my soundcard supports only one audio stream at a time, so there are problems. Solution is to configure dmix (transparent to application) or implement support for pulseaudio/arts etc. in moc.
--
Damian Pietras - MOC developer
Bach
Tue, 2008-06-10 20:04
Permalink
solved
I solved my problem using the guide here:
http://ubuntuforums.org/showthread.php?t=776739
tramberlimpe
Sun, 2018-11-25 16:46
Permalink
Can't use the "next" option
Hello,
I use the solution 'padsp mocp' for the bluetooth with pulseaudio. It works, but...
After the song ends, moc stops and go back to the terminal, where it's write :
"FATAL_ERROR: Can't receive value from the server!"
It's not possible to have a playlist. Do you have any ideas ?
jcf
Tue, 2018-11-27 20:30
Permalink
Here Are Some Things To Try
This error from the MOC client process results from the server process having terminated prematurely. Usually, this is as the result of some error at the server and a more explicit reason should be shown wherever your system is configured (in
/etc/syslog.conf
) to write such messages (/var/log/syslog
and/var/log/messages
are good candidates). Alternatively, if MOC on your system was configured with--enable-debug
set, then there should be a filemocp_server_log
produced if MOC is started with the-D
option which will contain the same message towards the end.If neither of these approaches work, then you can run the server (under
padsp
) in foreground using the-SF
command line option and connect to it from a client run separately (and not requiring to be run underpadsp
). This will display the messages on the terminal from which the server is started.However, it is possible that
padsp
is prematurely terminating the MOC server process, and in that case there may be no message issued. It would probably be worth trying this (from thepadsp
manpage) so thatpadsp
is not managing the MOC server process:tramberlimpe
Fri, 2018-11-30 08:32
Permalink
The last lines of results of "padsp mocp -SF"
Hello,
thanks for the answer. Here is the last lines of the result of "padsp mocp -SF"
There's a lot of "ERROR: Can't read from mixer"
If you have any ideas ! Thanks
tramberlimpe
Fri, 2018-11-30 09:06
Permalink
I've installed oss-compat and osspd...
... and it seems to work !
I tried
apt-cache search OSS pulseaudio
and I saw this 2 packages and installed it. After a reboot, it's was OK.
Thank for your reactivity.
tramberlimpe
Fri, 2018-11-30 16:41
Permalink
After installing osspd, no padsp to use.
After installing osspd,
apt install osspd oss-compat
I found I don't have to use padsp.
This solution seems be alright and stable :
If I want bluetooth , I run Moc with this command :
mocp --sound-driver OSS
If I want the internal speakers , I run Moc with this command :
mocp --sound-driver ALSA
Thanks again for your reactivity. I'll look further for the padsp problem...
jcf
Fri, 2018-11-30 09:10
Permalink
It's Not MOC, It's padsp
This is the smoking gun:
It's not the MOC server which has the problem, it's
padsp
itself which is failing (and in so doing also killing its children). You should refer the problem to whomever maintains it.In the meantime, I think the preloading of
libpulsedsp.so
alternative has a good chance of being successful if the problem does not originate from deeper down within PulseAudio.tramberlimpe
Fri, 2018-11-30 16:42
Permalink
Thanks for the answers
Hello,
thank for your answers and reactivity.
Bertrand
jcf
Fri, 2018-11-30 20:52
Permalink
And Thank You, Too
It's nice to get feedback to our attempts to help; so often they just disappear into a black hole and we (and anyone else with the same problem) never know whether or not it was resolved.
It would be interesting for you to try the preloading approach just to know whether or not it works as well.
Are you planning on reporting to
padsp
assertion to them? If so, could you please post the URL to the bug report here for future reference.