General discussion

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

Build error on PowerPC (Arch Linux)

Hi,

I'm trying to run MOC on Arch Linux (PowerPC) - and..well, for starters, when I run ./configure, it doesn't seem to recognise ALSA as a sound output...but the more pressing issue comes when I try to run make: (full make output follows:)

lwslade@phoenix mp3blaster-3.2.3: make
make all-recursive
make[1]: Entering directory `/home/ibook-lws/mp3blaster-3.2.3'
Making all in mpegsound
make[2]: Entering directory `/home/ibook-lws/mp3blaster-3.2.3/mpegsound'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ibook-lws/mp3blaster-3.2.3/mpegsound'
Making all in nmixer
make[2]: Entering directory `/home/ibook-lws/mp3blaster-3.2.3/nmixer'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ibook-lws/mp3blaster-3.2.3/nmixer'
Making all in src
make[2]: Entering directory `/home/ibook-lws/mp3blaster-3.2.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound -I/usr/include/ncurses -I../nmixer -I/usr/local/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DMP3BLASTER_DOCDIR=\"/usr/local/share/mp3blaster\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -MT history.o -MD -MP -MF ".deps/history.Tpo" \
-c -o history.o `test -f 'history.cc' || echo './'`history.cc; \
then mv -f ".deps/history.Tpo" ".deps/history.Po"; \
else rm -f ".deps/history.Tpo"; exit 1; \
fi
history.cc: In destructor ‘History::~History()’:
history.cc:18: error: ‘free’ was not declared in this scope
history.cc: At global scope:
history.cc:65: fatal error: opening dependency file .deps/history.Tpo: Permission denied
compilation terminated.
make[2]: *** [history.o] Error 1
make[2]: Leaving directory `/home/ibook-lws/mp3blaster-3.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ibook-lws/mp3blaster-3.2.3'
make: *** [all] Error 2

and at this point, it goes back to a command line.

Any ideas are greatly appreciated!

A Parametric Equalizer for MOC / Mono Mixing

Hi everyone!

I'm pleased to announce the implementation of a parametric equalizer for MOC!
This idea was on my mind for a long time but last week really got me working on this. I attended a conference and my WiFi-card seems to be broken; so what better to do than to tinker with MOC ? ;-)

So what is this about ?
Some audio players have means to manipulate the sound by adjusting the amplification/damping of certain frequency ranges.
Mostly, they use a fixed number of bands to manipulate the sound and/or provide some common presets.
A parametric equalizer is somewhat different as it allows you to define your bands yourself. You can guess that there would be no nice way of visualizing this kind of approach.
And here we come to an important point: there is no visual representation in this implementation. You define your preset and select it.
If this thing works for the public, maybe using a menu would be the way to go.

If you want to give it a try use this patch: moc-equalizer.patch
There are also some converted WinAmp / XMMS presets: eqsets.tar.gz (extract inside MOCs homedir)

Please read the README for usage information (README_equalizer, created by the patch)!

This patch also introduces the ability to switch on Mono-Mixing. This means to playback the average audio signal from all channels on all channels.
I use MOC at work sometimes using in-ear headphones. For better social acceptance I mostly leave one ear free - but some tunes need stereo; or mixing to mono...
It's off by default but maybe someone else likes this option too... :-)

Note:
This patch is against revision 2096 of MOCs source.
Besides the equalizer, I had to take out the new Berkeley-DB code as it would only crash on my machines.
Additionally I added the libtool-fixes discussed before to it.
I've just seen that there are some changes in the repo currently. I hope to integrate the EQ soon!

Please tell me what you think of this...

Enjoy!

USB sound card

Is there a way to make MOC recognize my USB SBLive! external sound card ?

Protocol specifications?

I'm currently learning Python and in this process, I'm re-writing mocstat (the Perl script that puts 'currently playing'-information on my desktop via Conky). I'm still getting information from MOC via `mocp --info`, which is either very cpu intensive or very inaccurate, depending on the delay. So I would like to ask the MOC server directly via the socket about playing information, just like the interface does.
Is there any information about the protocol anywhere? I couldn't find anything.
If the protocol isn't documented, could you provide some information about what to send and how to receive the answer, so I could get the same information from the socket as I get from `mocp --info`? I tried to read the sources, but my C skills are too weak, so any information would be appreciated.

Playing files from directory where new files are constantly added

I have directory where I save mp3 files (single mp3 file for one song) from internet radio. Initially this directory is empty or contain few, e.g. five files. I start mocp and play first song, then quit mocp. The internet radio streaming continue, thus, when 5th song is played, there are allready more files, e.g. 11, but mocp stop playing after fifth file, even if there are 11 files now.

Is there any way how to make mocp "refreshing" directory content after each song, so it can play freshly added files?

$ mocp --version
moc 2.5.0-alpha2 Build: Oct 28 2007 11:11:40
Compiled with: OSS ALSA JACK DEBUG internet streams resample

LIRC support

It would be nice if moc had LIRC support. You can use irexec to do mocp -G, for example, but then it clobbers other programs. From the looks of the lirc_client library, support would be fairly trivial to add. Would anyone be interested in adding this? I'm spread too thin to pitch in as it stands, but I'd really like this feature.

feature request: tabbed playlist

The only option I'm missing in MOC is tabbed playlist. It doesn't have to be anything special - it can just be fixed number of tabs (three or four), command to change tab (ctrl+ for example) and some indicator showing which tab is currently active.

I've tried to implement this feature myself, but it seems I'm not that good in C programming (maybe one day :)).

"No decoder plugins have been loaded!"

Hey everyone!
I get this error:
$ mocp

FATAL_ERROR: No decoder plugins have been loaded!

I read the manual page and decided to use -D to find out where is the error:
$ mocp -D
Loading plugins from /usr/local/lib/moc/decoder_plugins...

FATAL_ERROR: No decoder plugins have been loaded!

There really is NO decoder plugins in /usr/local/lib/moc/decoder_plugins
But there ARE in /usr/lib/moc/decoder_plugins

I couldn't fix the path error by myself, for I do not know much and couldn't find where it is defined, Could you help me?

Pages

Subscribe to RSS - General discussion