Ameter plugin : looping sound
Quoted 6 lines
Quoted 6 lines
Hi,
Ameter is a metering plugin for Alsa :
http://laugeo.free.fr/ameter.html
It stopped working since 1.0.10,and also fails with 1.0.11rc1 (was ok with 1.0.9) :
Playing a sound with aplay (or any other program) cause a short sound
looping
Quoted 9 lines
Quoted 8 lines
in audio out ,while peakmeter displays the real soundfile level . It seems that the looping sound is the end of the last played sound . I have Mandriva 2005 (2.6.11 standard kernel), ens1371 sound card. Somenone else has reported the problem ( I don't know his config) .
Test command:
aplay -D ameter sound.wav -v
It returns no error.
Quoted 8 lines
The easiest solution is to use ALSA CVS to do a binary search and find out exactly which commit broke it.
I like to go by date as not all releases get tagged in CVS:
cvs update -D2005-11-01 -A
etc
Lee
It is ok on 2005-09-02 and broken on 2005-09-03 Changing only alsa-lib makes the problem to appear.
The files that are updated between 09-02 and 09-03:
U alsa-lib/src/pcm/pcm_file.c
U alsa-lib/src/pcm/pcm_generic.c
U alsa-lib/src/pcm/pcm_generic.h
U alsa-lib/src/pcm/pcm_local.h
U alsa-lib/src/pcm/pcm_mmap.c
U alsa-lib/src/pcm/pcm_null.c
U alsa-lib/src/pcm/pcm_plug.c
U alsa-lib/src/pcm/pcm_rate.c
U alsa-lib/src/pcm/pcm_softvol.c
May be it is enough for you, or I can search more exactly which file(s) are bad for the meter.
Regards
Laurent
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
At Wed, 21 Dec 2005 23:29:16 +0100,
Quoted 40 lines · [email protected] wrote:
Quoted 7 lines
Quoted 7 lines
Hi,
Ameter is a metering plugin for Alsa :
http://laugeo.free.fr/ameter.html
It stopped working since 1.0.10,and also fails with 1.0.11rc1 (was ok with 1.0.9) :
Playing a sound with aplay (or any other program) cause a short soundlooping
Quoted 9 lines
Quoted 8 lines
in audio out ,while peakmeter displays the real soundfile level . It seems that the looping sound is the end of the last played sound . I have Mandriva 2005 (2.6.11 standard kernel), ens1371 sound card. Somenone else has reported the problem ( I don't know his config) .
Test command:
aplay -D ameter sound.wav -v
It returns no error.Quoted 8 lines
The easiest solution is to use ALSA CVS to do a binary search and find out exactly which commit broke it.
I like to go by date as not all releases get tagged in CVS:
cvs update -D2005-11-01 -A
etc
LeeIt is ok on 2005-09-02 and broken on 2005-09-03 Changing only alsa-lib makes the problem to appear.
The files that are updated between 09-02 and 09-03:
Ualsa-lib/src/pcm/pcm_file.c
Ualsa-lib/src/pcm/pcm_generic.c
Ualsa-lib/src/pcm/pcm_generic.h
Ualsa-lib/src/pcm/pcm_local.h
Ualsa-lib/src/pcm/pcm_mmap.c
Ualsa-lib/src/pcm/pcm_null.c
Ualsa-lib/src/pcm/pcm_plug.c
Ualsa-lib/src/pcm/pcm_rate.c
Ualsa-lib/src/pcm/pcm_softvol.c
Quoted 3 lines
May be it is enough for you, or I can search more exactly which file(s) are bad for the meter.
Regards
The patch below should fix your problem. It's already committed to CVS.
thanks,
Takashi
Index: alsa-lib/src/pcm/pcm_meter.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-lib/src/pcm/pcm_meter.c,v retrieving revision 1.42
src/pcm/pcm_meter.c +1 -0
@@ -575,6 +575,7 @@return err; } pcm->mmap_rw =1 ; + pcm->mmap_shadow =1 ; pcm->ops = &snd_pcm_meter_ops; pcm->fast_ops = &snd_pcm_meter_fast_ops; pcm->private_data = meter;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Selon Takashi Iwai <[email protected]>:
Quoted 47 lines
At Wed, 21 Dec 2005 23:29:16 +0100,
Quoted 5 lines · [email protected] wrote:
Quoted 5 lines
Quoted 5 lines
Hi,
Ameter is a metering plugin for Alsa :
http://laugeo.free.fr/ameter.html
It stopped working since 1.0.10,and also fails with 1.0.11rc1 (was okwith
Quoted 35 lines
Quoted 2 lines
Quoted 2 lines
1.0.9) :
Playing a sound with aplay (or any other program) cause a short soundlooping
Quoted 9 lines
Quoted 8 lines
in audio out ,while peakmeter displays the real soundfile level . It seems that the looping sound is the end of the last played sound . I have Mandriva 2005 (2.6.11 standard kernel), ens1371 sound card. Somenone else has reported the problem ( I don't know his config) .
Test command:
aplay -D ameter sound.wav -v
It returns no error.Quoted 8 lines
The easiest solution is to use ALSA CVS to do a binary search and find out exactly which commit broke it.
I like to go by date as not all releases get tagged in CVS:
cvs update -D2005-11-01 -A
etc
LeeIt is ok on 2005-09-02 and broken on 2005-09-03 Changing only alsa-lib makes the problem to appear.
The files that are updated between 09-02 and 09-03:
Ualsa-lib/src/pcm/pcm_file.c
Ualsa-lib/src/pcm/pcm_generic.c
Ualsa-lib/src/pcm/pcm_generic.h
Ualsa-lib/src/pcm/pcm_local.h
Ualsa-lib/src/pcm/pcm_mmap.c
Ualsa-lib/src/pcm/pcm_null.c
Ualsa-lib/src/pcm/pcm_plug.c
Ualsa-lib/src/pcm/pcm_rate.c
Ualsa-lib/src/pcm/pcm_softvol.cQuoted 3 lines
May be it is enough for you, or I can search more exactly which file(s) are bad for the meter.
Regards
Quoted 8 lines
The patch below should fix your problem. It's already committed to CVS.
thanks,
Takashi
Ok now.
Thanks to you
Laurent
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click