General discussion

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

MOC volume control issue

First of all, sorry for my english.

I have problem with making MOCp to work with ALSA. It plays ok, i can hear sound but theres no way i can change the volume. I tried to change something in config, but when i put line "AlsaDevice = hw:0" mocp says "No valid sound driver", when alsadevice is "default" changing valuses of AlsaMixer wont help too. It works when i leave it default. I also tried to create .asoundrc and according to that put this in line AlsaDevice, but still same problem. I have no idea how to make it work, it is very good on my laptop but on by box it nightmare. Help me please

MOC and alsaequal

Hi,

I was trying to hook moc with the alsaequal, nice real-time adjustable equalizer plugin for ALSA

http://www.thedigitalmachine.net/alsaequal.html

but I started to read and I realized that I need more than to hours to understand all this things and how to modify the .asoundrc... probably it's not so difficult but I'm a greenhorn on this... so I didn't even tried to be honest, but if some has done already the trick and could share it would be fantastic. if not I'll put it in my never-ending TODO list and one day I'll publish the HOWTO.

Cheers,

Bradomyn

Sound at start of mp3 file

Hi. There's an annoying sound at the beginning of mp3 files. I was searching for info about it and found this on the mpg321 changelog:

mpg321 (0.2.12-1) unstable; urgency=high
...
* Fixed ID3v2 tag problem which resulted in a splat-sound at the start of
the file. Patch from Martin Wellard. Thanks.
...

Could it be related?

I'm sorry if I'm asking something stupid, I'm obviously not a programmer XD

Thanks to the developers for this great application!

Two bugs

Hi, two possible bugs. I searched the forum and couldn't find anything on either, please forgive if these are resolved.
MOC version: 2.5.0~alpha3+svn20 [Debian Lenny]

1) Encoding issue with ID3v2 tags. Displaying a tag with certain characters (especially accented characters) results in garbage. Röyksopp becomes Röyksopp.
I don't have any ID3v1 tags. I tag all my files using id3lib (via id3v2 from sourceforge). The filename is also named similarly and moc shows that fine. My $LANG is en_US.UTF-8

2) Playlist invisible on crash. moc appears to save playlist on creation, and continues playing if client exits suddenly or quits (detaches). However, if it is killed or exits suddenly (e.g. ssh connection dropped) the playlist is no longer visible. The most recent 'saved' playlist (playlist active during manual detach) is displayed, but the playlist active during crash continues to play unseen.
I tried filing with debian package maintainer but it was described as a feature. For the playlist to become invisible. He didn't reply to any further questions..

Thanks!

Incompatibility with libdirac_encoder 1.0.2-3

After updating to Ubuntu 10.10 beta cannot run mocp server:

$ mocp -S
Running the server...
Trying JACK...
Trying ALSA...
Build signature doesn't match environment
mocp: symbol lookup error: /usr/lib/libdirac_encoder.so.0: undefined symbol: _ZdaPv, version GLIBCXX_3.4

It's for 2.5.0-alpha4; mocp, built from sources, falls with the same error.

[Feature Request] Stop playing after current track

It would be cool to stop playback after the end of the currently played track (like it is possible in e.g. amarok2).

mp3 files preloaded completely

I'm using moc to play music in a directory I mounted with sshfs over the Internet.
It's working great with flac files, they are played very smoothly. But when playing mp3 files, there is a rather long delay before playback is starting, because moc is first reading (i.e. transferring) the complete file (while flacs are "streamed" on playback).
Is there a technical reason that mp3 files have to be read completely?

I also observed that when I enable ShowTime, it first wants to read ALL files I've added to the playlist (which makes some sense that the files have to be read to determine the time; though with flacs it's also working by reading just a small part of the file which is therefore rather fast).
But I don't understand why mp3 files have be read fully even when ShowTime is disabled.
Is it possible to optimize that? :)

[patch] alsa mixer doesn't handle joined channels

It reports: "Mixer has no channels". But there are one:
% amixer sget Master
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined
Playback channels: Mono
Limits: Playback 0 - 255
Mono: Playback 137 [54%] [-29.50dB]

Index: alsa.c
===================================================================
--- alsa.c (revision 2249)
+++ alsa.c (working copy)
@@ -203,31 +203,37 @@

handle_mixer_events (mixer_handle);

- for (i = 0; i < SND_MIXER_SCHN_LAST; i++)
- if (snd_mixer_selem_has_playback_channel(elem,
- 1 << i)) {
- long vol;
-
- nchannels++;
- if ((err = snd_mixer_selem_get_playback_volume(
- elem,
- 1 << i,
- &vol)) < 0) {
- error ("Can't read mixer: %s",
- snd_strerror(err));
- return -1;
-
- }
- /*logit ("Vol %d: %ld", i, vol);*/
- volume += vol;
- }
+ if (snd_mixer_selem_has_playback_volume_joined(elem)) {
+ if (snd_mixer_selem_get_playback_volume(elem, 0, &volume) != 0)
+ logit ("Can't read joined mixer channel");
+ }
+ else {
+ for (i = 0; i < SND_MIXER_SCHN_LAST; i++)
+ if (snd_mixer_selem_has_playback_channel(elem,
+ 1 << i)) {
+ long vol;
+
+ nchannels++;
+ if ((err = snd_mixer_selem_get_playback_volume(
+ elem,
+ 1 << i,
+ &vol)) < 0) {
+ error ("Can't read mixer: %s",
+ snd_strerror(err));
+ return -1;
+
+ }
+ /*logit ("Vol %d: %ld", i, vol);*/
+ volume += vol;
+ }

- if (nchannels > 0)
- volume /= nchannels;
- else {
- logit ("Mixer has no channels");
- volume = -1;
- }
+ if (nchannels > 0)
+ volume /= nchannels;
+ else {
+ logit ("Mixer has no channels");
+ volume = -1;
+ }
+ }

/*logit ("Max: %ld, Min: %ld", mixer_max, mixer_min);*/
return volume;

Pages

Subscribe to RSS - General discussion