General discussion

Here you can discuss everything related to MOC which doesn't fit other subforum.

Starting on the playlist...

Is there any way to make moc start in playlist mode when I (re)start it; typically, if I've got something playing, what I want to see when I (re)connect to it is the playlist, not some random music directory I was last in (or my "main" music directory; yes, I know about the StartInMusicDir option).

Just wondering if I missing a startup or config option.

Thanks!

No decoder plugins have been loaded

Just compiled and installed moc but on trying to run it I get this message:

No decoder plugins have been loaded.

Obviously something elementary but I don't see how to do this. There are decoder_plugins in the source directory but where are they supposed to go?

"mocp -p" does not play previous playlist

Hi,

I'd like to be able to launch moc in the background with "mocp -p" and have it play
from the remembered playlist, but it doesn't work.

Thanks for you help

PS: using debian's 2.3.2-4

patch: memory leak

This patch eliminates memory leak when playing internet stream.


--- player.c.orig 2005-09-09 08:20:13.000000000 +0000
+++ player.c
@@ -378,6 +378,8 @@ static void update_tags (const struct de
show_tags (curr_tags);
tags_changed = 1;
}
+ else
+ free(stream_title);

if (tags_changed)
tags_change ();

http://kala.ee/rix/moc-player-c.patch

moc dying frequently

Hi!

I'm having problems running moc on a discless Mini-ITX box running Debian Stable over nfs. I can start playing a track, but if I try to change tracks while one is running or try to stop the track, moc crashes with one of the following messages:

FATAL_ERROR: Can't send() int to the server.
FATAL_ERROR: Can't receive value from the server.

The problem is not 100% reproducible, but if I change 2-3 songs in rapid succession the program always crashes with one of the messages listed above.
The linux kernel on the machine is not the stock Debian kernel, but based on the 2.6.8 Debian kernel sources with the necessary drivers statically compiled in (for easier tftp-boot). Could this be causing the problems?
I wish I could supply more information, but I can't think of anything else to add.

moc version 2.2.1-2 from the Debian repository.
I could of course compile a newer version from source or use Debian Unstable packages, but I would rather avoid this.

Any suggestions?

Noise while playing mp3

Hi,

I have an problem with playing MP3. I'm using MOC player for a long time and everything worked well, but today, i've registered failure - i've compiled new packages (emerge -vuD world) in my system and when i want to play some new music - moc player failed. I've restarted it, because i thought that was alsa modules (which was recompiled), but that's not the problem. Now, when i play some mp3 file (i don't have some else supported format on my hdd), i hear the music, but wery strong noise. alsamixer don't affected anything, other players (like xmms, mplayer) works well. Do anyone know what to do whit this?...I don't have any ideas.

theburn@LAMA ~ $ mocp -V
moc 2.3.0 Build: Nov 1 2005 21:27:38
Compiled with: OSS ALSA DEBUG internet streams resample
theburn@LAMA ~ $ uname -a
Linux LAMA 2.6.14-rc5 #1 SMP PREEMPT Tue Nov 1 19:59:08 CET 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux

error loading libjack.so.0

Hi!

first, I really like moc. Its one of the coolest applications that I use.

I upgraded moc on my arch linux system and now when I run mocp I get this error

mocp: error while loading shared libraries: libjack.so.0: cannot open shared object library: no such file or directory.
where can I get libjack.so.0? Where where should I put it once I get it?

If this is just something I would fix by compiling from source, then I'll just compile moc from source!

thanks

patch: looping info

Hi, I needed up-to-date/second information for a script watching as moc is playing.
I'm quite sure it's not really the proper way to do this, but unless someone comes up with a better idea, here's the patch for it.
What it does:
Add's the options -I and --infoloop as well as the required code to main.c for a looping --info.

Comments are welcome ;-)

moc-2.3.2-infoloop.patch

--- main.c 2005-09-25 09:59:15.000000000 +0200
+++ main.c 2005-10-25 00:39:48.000000000 +0200
@@ -55,6 +55,7 @@
int next;
int previous;
int get_file_info;
+ int loop_file_info;
int toggle_pause;
int recursively;
int playit;
@@ -289,6 +290,17 @@
interface_cmdline_play_first (server_sock);
if (params->get_file_info)
interface_cmdline_file_info (server_sock);
+ while (params->loop_file_info) {
+ printf("\nINFO COMPLETE\n\n");
+ if (fflush(stdout)) {
+ options_free ();
+ decoder_cleanup ();
+ compat_cleanup ();
+ exit; // error
+ }
+ sleep(2);
+ interface_cmdline_file_info (server_sock);
+ }
send_int (server_sock, CMD_DISCONNECT);
}
else if (params->only_server)
@@ -374,6 +386,7 @@
"-n --nosync Don't synchronize the playlist with other clients.\n"
"-A --ascii Use ASCII characters to draw lines.\n"
"-i --info Print the information about the currently played file.\n"
+"-I --infoloop Print the information about the currently played file in a loop.\n"
"-e --recursively Make a playlist from the content of the directory given\n"
" at the command line.\n"
, prg_name);
@@ -476,6 +489,7 @@
{ "nosync", 0, NULL, 'n' },
{ "ascii", 0, NULL, 'A' },
{ "info", 0, NULL, 'i' },
+ { "infoloop", 0, NULL, 'I' },
{ "recursively", 0, NULL, 'e' },
{ 0, 0, 0, 0 }
};
@@ -486,7 +500,7 @@
memset (&params, 0, sizeof(params));
options_init ();

- while ((ret = getopt_long(argc, argv, "VhDSFR:macpsxT:C:M:PUynArfiGel",
+ while ((ret = getopt_long(argc, argv, "VhDSFR:macpsxT:C:M:PUynArfiIGel",
long_options, &opt_index)) != -1) {
switch (ret) {
case 'V':
@@ -528,6 +542,11 @@
params.get_file_info = 1;
params.dont_run_iface = 1;
break;
+ case 'I':
+ params.get_file_info = 1;
+ params.dont_run_iface = 1;
+ params.loop_file_info = 1;
+ break;
case 'p':
params.play = 1;
params.dont_run_iface = 1;

BTW: is it possible to attach files somehow?

Pages

Subscribe to RSS - General discussion