General discussion

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

"Can't set audio parameters: Invalid argument"

Hi,

trying to play a mp3-file I always get a "Can't set audio parameters: Invalid argument" error.
I already checked my alsa-settings, reinstalled MOC, but no luck so far.

I'm running a current Gentoo and installed MOC 2.4.1 via emerge with all useflags except 'debug'.

Any ideas?

Features request

First of all i really like moc.
I'm switching from musicpd cause it can only play file indexed in his own database.

I use the cmdline interface.
#1 I' can't find a way to know the state of controls (shuffle,repeat,autonext).
I think it could be added in the info option (mocp -i).
in file interface.c in function interface_cmdline_file_info with something like this:

curr_file.state = get_state ();

printf("State: ");
if (curr_file.state == STATE_STOP) printf("STOP");
else if (curr_file.state == STATE_PLAY) printf("PLAY");
else if (curr_file.state == STATE_PAUSE) printf("PAUSE");

char* opts [] = { "Shuffle", "Repeat", "AutoNext" } ;
for ( i = 0; i < 3; ++i)
{
send_int_to_srv (CMD_GET_OPTION);
send_str_to_srv (opts);
if ( get_data_int () )
printf(" - %s", opts);
}
printf("\n");

if (curr_file.state != STATE_STOP)
{

....

So, for example, instead of
State: PLAY
i get
State: PLAY - Shuffle - Autonext

#2 I can't connect to server from a different user.
user1:/$mocp -M commondir -S
user2:/$mocp -M commondir -p

don't work cause only user1 has write permission on the created socket file.
I added:
umask(0);
at the beginning of the program in main.c and it works, but there should be a smarter solution.

#3 I ripped my cd collection and often i would like to play directly a track without using next/prev commands. So it would be nice if in play option (mocp -p) would be possible to select which track to play (es. mocp -p 4).

Thanks!
Fulvio Benini

Cue files reading support in MOC?

I think it will be good to have CUE files reading support in MOC. Sadly, Im not a programmer but a music fan but I think it's not VERY hard to implement this features - there are XMMS/BMP/Audacious plugins that can be used as examples.

AAC crashes MOC on gentoo

Hi everyone. I'm using MOC to play my music library which was created on an OS X computer so there are a lot of AAC (.m4a) MP4 files there. I built MOC with ffmpeg support, and ffmpeg was built with AAC support, so I'm not sure why this doesn't work. Before I rebuilt everything, the AAC files just didn't show up in the browser. Now they do but when I hit enter I get:

FATAL_ERROR: Can't receive value from the server.

Any help would be appreciated. This is a really cool program so I want to get it working just right!

i cant play wav files

hi, I installed moc from source on ubuntu.

with these libraries
§ apt-get install libncurses-dev

§ apt-get install libmad0-dev
§ apt-get install libvorbis-dev

§ apt-get install zlibc
§ apt-get install libid3tag0-dev

I can play mp3 and ogg, but what lib do I need
to be able to play wav files ?

Problems using 320x240 screen size

I have a small screen that looks really good using a 320x240 console (i.e. grub kernel option "vga=782").

Unfortunately, MOC balks at this console size, saying "Screen size too small after resize". Is this an inherent limitation of MOC or a hardcoded assumption of 640x480 screen size?

For reference, system is:

$ mocp --version
moc 2.4.1 Build: Nov 10 2006 01:51:36
Compiled with: OSS ALSA JACK DEBUG internet streams resample

$ uname -a
Linux kurt 2.6.20-16-server #2 SMP Thu Jun 7 20:26:23 UTC 2007 i686 GNU/Linux

any suggestions?
thanks!
christian

can't see files

i have checked and i have all libraries needed, but still i cant see my mp3 files...

Highlight track length

Hi, I've always wished for the track length (info) to be highlighted when marked/selected, so I tried and added a few lines to the code.
I think this should be implemented properly by someone who can actually programme but anyway here's a patch that does it unelegantly and that works with the current svn.
I really hope this gets done in a nicer way, thanks for looking into it.

Pages

Subscribe to RSS - General discussion