<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-503</id>
	<title>Nabble - Mad - Dev</title>
	<updated>2008-12-02T00:05:21Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Mad---Dev-f503.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mad---Dev-f503.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-20787830</id>
	<title>playback/decoding problem</title>
	<published>2008-12-02T00:05:21Z</published>
	<updated>2008-12-02T00:05:21Z</updated>
	<author>
		<name>Mathias Kuester</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;i have a problem with one stream that is not correct decoded by libmad. I use libmad-0.15.1b-r5 and mplayer with the following command line:
&lt;br&gt;&lt;br&gt;mplayer -ac mad &lt;a href=&quot;http://gffstream.ic.llnwd.net/stream/gffstream_w19a&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gffstream.ic.llnwd.net/stream/gffstream_w19a&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is a mp3 radio stream and i get ugly noise and spikes. I can try another stream and it works very well. Can anyone tell me why this stream is not correct decoded. I have tried some other decoders
&lt;br&gt;but its always the same problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Mathias
&lt;br&gt;&lt;br&gt;&lt;br&gt;---
&lt;br&gt;&lt;br&gt;OUTPUT:
&lt;br&gt;&lt;br&gt;mplayer -ac mad &lt;a href=&quot;http://gffstream.ic.llnwd.net/stream/gffstream_w19a&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gffstream.ic.llnwd.net/stream/gffstream_w19a&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Connecting to server gffstream.ic.llnwd.net[87.248.219.36]: 80...
&lt;br&gt;Cache size set to 320 KBytes
&lt;br&gt;Cache fill: 15.00% (49152 bytes)
&lt;br&gt;Audio only file format detected.
&lt;br&gt;==========================================================================
&lt;br&gt;Forced audio codec: mad
&lt;br&gt;Opening audio decoder: [libmad] libmad mpeg audio decoder
&lt;br&gt;AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000-&amp;gt;176400)
&lt;br&gt;Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
&lt;br&gt;==========================================================================
&lt;br&gt;AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
&lt;br&gt;Video: no video
&lt;br&gt;Starting playback...
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/playback-decoding-problem-tp20787830p20787830.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20177452</id>
	<title>Playback issues</title>
	<published>2008-10-26T13:00:03Z</published>
	<updated>2008-10-26T13:00:03Z</updated>
	<author>
		<name>henke37</name>
	</author>
	<content type="html">Hi, I am trying to make a sound library for the Wii that uses libmad for 
&lt;br&gt;the mp3 decoding. However, I seem to have a problem, my code reports a 
&lt;br&gt;lot of lost sync errors when decoding the frames. Could someone please 
&lt;br&gt;take a look at my code and see if I am doing something obviously wrong?
&lt;br&gt;&lt;br&gt;You can find my code at svn://henke37.cjb.net/sound/ , the main file is 
&lt;br&gt;newMP3Player.cpp .
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Playback-issues-tp20177452p20177452.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-20055736</id>
	<title>Madplay improved patch for alsa audio</title>
	<published>2008-10-19T05:25:46Z</published>
	<updated>2008-10-19T05:25:46Z</updated>
	<author>
		<name>Micha Nelissen</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Attached is an improved patch for alsa backend of madplay.
&lt;br&gt;* fix allocation of buffer, buffer_size is number of frames
&lt;br&gt;* use default 16 bit depth (some hardware has small buffers, 16/24 bit
&lt;br&gt;difference is very small)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Micha
&lt;br&gt;&lt;br&gt;&lt;br /&gt;--- madplay-0.15.2b/audio_alsa.c	2008-10-18 15:10:16.000000000 +0200
&lt;br&gt;+++ madplay-0.15.2b/audio_alsa.c.new	2008-10-18 15:03:27.000000000 +0200
&lt;br&gt;@@ -28,31 +28,30 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;lt;errno.h&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-#define ALSA_PCM_OLD_HW_PARAMS_API
&lt;br&gt;-#define ALSA_PCM_OLD_SW_PARAMS_API
&lt;br&gt;&amp;nbsp;#include &amp;lt;alsa/asoundlib.h&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;lt;mad.h&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;quot;audio.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-char *buf	= NULL;
&lt;br&gt;-int paused	= 0;
&lt;br&gt;+#define BUFFER_TIME_MAX &amp;nbsp; &amp;nbsp; 500000
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-int rate	= -1;
&lt;br&gt;-int channels	= -1;
&lt;br&gt;-int bitdepth	= -1;
&lt;br&gt;-int sample_size	= -1;
&lt;br&gt;-
&lt;br&gt;-int buffer_time		= 500000;
&lt;br&gt;-int period_time		= 100000;
&lt;br&gt;-char *defaultdev	= &amp;quot;plughw:0,0&amp;quot;;
&lt;br&gt;+unsigned char *buf &amp;nbsp;= NULL;
&lt;br&gt;+int paused	 &amp;nbsp; &amp;nbsp;= 0;
&lt;br&gt;+
&lt;br&gt;+unsigned int rate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0;
&lt;br&gt;+unsigned int channels	 &amp;nbsp; &amp;nbsp;= -1;
&lt;br&gt;+unsigned int bitdepth	 &amp;nbsp; &amp;nbsp;= -1;
&lt;br&gt;+unsigned int sample_size &amp;nbsp; &amp;nbsp;= -1;
&lt;br&gt;+
&lt;br&gt;+unsigned int buffer_time;
&lt;br&gt;+unsigned int period_time;
&lt;br&gt;+char *defaultdev	 &amp;nbsp; &amp;nbsp;= &amp;quot;plughw:0,0&amp;quot;;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;snd_pcm_hw_params_t *alsa_hwparams;
&lt;br&gt;&amp;nbsp;snd_pcm_sw_params_t *alsa_swparams;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-snd_pcm_sframes_t buffer_size;
&lt;br&gt;-snd_pcm_sframes_t period_size;
&lt;br&gt;+snd_pcm_uframes_t buffer_size;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;snd_pcm_format_t &amp;nbsp;alsa_format = -1;
&lt;br&gt;&amp;nbsp;snd_pcm_access_t &amp;nbsp;alsa_access = SND_PCM_ACCESS_MMAP_INTERLEAVED;
&lt;br&gt;@@ -66,14 +65,20 @@
&lt;br&gt;&amp;nbsp;		 snd_pcm_hw_params_t *params,
&lt;br&gt;&amp;nbsp;		 snd_pcm_access_t access)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	int err, dir;
&lt;br&gt;-	
&lt;br&gt;+	int err;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;	/* choose all parameters */
&lt;br&gt;&amp;nbsp;	err = snd_pcm_hw_params_any(handle,params);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Access type not available for playback: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;&amp;nbsp;		return err;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;+	/* set the access type */
&lt;br&gt;+	err = snd_pcm_hw_params_set_access(handle, params, alsa_access);
&lt;br&gt;+	if (err &amp;lt; 0) {
&lt;br&gt;+		printf(&amp;quot;Sample format not available for playback: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;+		return err;
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;	/* set the sample format */
&lt;br&gt;&amp;nbsp;	err = snd_pcm_hw_params_set_format(handle, params, alsa_format);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;@@ -87,29 +92,38 @@
&lt;br&gt;&amp;nbsp;		return err;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	/* set the stream rate */
&lt;br&gt;-	err = snd_pcm_hw_params_set_rate_near(handle, params, rate, 0);
&lt;br&gt;+	err = snd_pcm_hw_params_set_rate(handle, params, rate, 0);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Rate %iHz not available for playback: %s\n&amp;quot;, rate, snd_strerror(err));
&lt;br&gt;&amp;nbsp;		return err;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	if (err != rate) {
&lt;br&gt;-		printf(&amp;quot;Rate doesn't match (requested %iHz, get %iHz)\n&amp;quot;, rate, err);
&lt;br&gt;-		return -EINVAL;
&lt;br&gt;-	}
&lt;br&gt;+	err = snd_pcm_hw_params_get_buffer_time_max(params, &amp;buffer_time, NULL);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (err &amp;lt; 0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;Unable to retrieve buffer time: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return err;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buffer_time &amp;gt; BUFFER_TIME_MAX)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buffer_time = BUFFER_TIME_MAX;
&lt;br&gt;&amp;nbsp;	/* set buffer time */
&lt;br&gt;-	err = snd_pcm_hw_params_set_buffer_time_near(handle, params, buffer_time, &amp;dir);
&lt;br&gt;+	err = snd_pcm_hw_params_set_buffer_time_near(handle, params, &amp;buffer_time, 0);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Unable to set buffer time %i for playback: %s\n&amp;quot;, buffer_time, snd_strerror(err));
&lt;br&gt;&amp;nbsp;		return err;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	buffer_size = snd_pcm_hw_params_get_buffer_size(params);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (period_time * 4 &amp;gt; buffer_time)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;period_time = buffer_time / 4;
&lt;br&gt;&amp;nbsp;	/* set period time */
&lt;br&gt;-	err = snd_pcm_hw_params_set_period_time_near(handle, params, period_time, &amp;dir);
&lt;br&gt;+	err = snd_pcm_hw_params_set_period_time_near(handle, params, &amp;period_time, NULL);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;&amp;nbsp;		printf(&amp;quot;Unable to set period time %i for playback: %s\n&amp;quot;, period_time, snd_strerror(err));
&lt;br&gt;&amp;nbsp;		return err;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	period_size = snd_pcm_hw_params_get_period_size(params, &amp;dir);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* retrieve buffer size */
&lt;br&gt;+	err = snd_pcm_hw_params_get_buffer_size(params, &amp;buffer_size);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (err &amp;lt; 0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;Unable to retrieve buffer size: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return err;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;	/* write the parameters to device */
&lt;br&gt;&amp;nbsp;	err = snd_pcm_hw_params(handle, params);
&lt;br&gt;&amp;nbsp;	if (err &amp;lt; 0) {
&lt;br&gt;@@ -123,6 +137,7 @@
&lt;br&gt;&amp;nbsp;int set_swparams(snd_pcm_t *handle,
&lt;br&gt;&amp;nbsp;		 snd_pcm_sw_params_t *params)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned int start_threshold;
&lt;br&gt;&amp;nbsp;	int err;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* get current swparams */
&lt;br&gt;@@ -136,13 +151,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (err &amp;lt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;Unable to set start threshold mode for playback: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return err;
&lt;br&gt;-										 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* allow transfer when at least period_size samples can be processed */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;err = snd_pcm_sw_params_set_avail_min(handle, params, period_size);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (err &amp;lt; 0) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;Unable to set avail min for playback: %s\n&amp;quot;, snd_strerror(err));
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return err;
&lt;br&gt;-												 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* align all transfers to 1 samples */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;err = snd_pcm_sw_params_set_xfer_align(handle, params, 1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (err &amp;lt; 0) {
&lt;br&gt;@@ -190,7 +199,7 @@
&lt;br&gt;&amp;nbsp;	rate		= config-&amp;gt;speed;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if ( bitdepth == 0 )
&lt;br&gt;-		config-&amp;gt;precision = bitdepth = 32;
&lt;br&gt;+		config-&amp;gt;precision = bitdepth = 16;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	switch (bitdepth)
&lt;br&gt;&amp;nbsp;	{
&lt;br&gt;@@ -241,7 +250,7 @@
&lt;br&gt;&amp;nbsp;		return -1;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	buf = malloc(buffer_size);
&lt;br&gt;+	buf = malloc(buffer_size * sample_size);
&lt;br&gt;&amp;nbsp;	if (buf == NULL) {
&lt;br&gt;&amp;nbsp;		audio_error=&amp;quot;unable to allocate output buffer table&amp;quot;;
&lt;br&gt;&amp;nbsp;		return -1;
&lt;br&gt;@@ -279,7 +288,7 @@
&lt;br&gt;&amp;nbsp;int play(struct audio_play *play)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int err, len;
&lt;br&gt;-	char *ptr;
&lt;br&gt;+	unsigned char *ptr;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	ptr = buf;
&lt;br&gt;&amp;nbsp;	len = play-&amp;gt;nsamples;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Madplay-improved-patch-for-alsa-audio-tp20055736p20055736.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19933645</id>
	<title>libmad-0.15.1b does not compile on Fedora 9</title>
	<published>2008-10-11T08:27:11Z</published>
	<updated>2008-10-11T08:27:11Z</updated>
	<author>
		<name>Joao Moreira</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've just installed a clean Fedora 9 distro, and I tried to compile
&lt;br&gt;libmad-0.15.1b (which I had done fine previously, under Fedora 5),
&lt;br&gt;I got the following error :
&lt;br&gt;&lt;br&gt;&amp;nbsp;gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall 
&lt;br&gt;-march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps 
&lt;br&gt;-fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove 
&lt;br&gt;-fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF 
&lt;br&gt;.deps/version.Tpo -c version.c &amp;nbsp;-fPIC -DPIC -o .libs/version.o
&lt;br&gt;cc1: error: unrecognized command line option &amp;quot;-fforce-mem&amp;quot;
&lt;br&gt;make[2]: *** [version.lo] Error 1
&lt;br&gt;&lt;br&gt;gcc version 4.3.0 does not have the &amp;quot;-fforce-mem&amp;quot; option... what can I do ?
&lt;br&gt;is there a way (a configure option) to disable this ?
&lt;br&gt;&lt;br&gt;Thx,
&lt;br&gt;Joao
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Joao Moreira de Sa Coutinho
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19933645&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joao.moreira@...&lt;/a&gt;
&lt;br&gt;Tel.: 08.70.23.48.29
&lt;br&gt;Mob.: 06.28.90.83.67
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/libmad-0.15.1b-does-not-compile-on-Fedora-9-tp19933645p19933645.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19568128</id>
	<title>Re: madplay: How to select a specific ALSA card</title>
	<published>2008-09-19T01:20:27Z</published>
	<updated>2008-09-19T01:20:27Z</updated>
	<author>
		<name>joker1999</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;joker1999 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Thomas Reitmayr-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;I just started using madplay a short while ago and I was wondering
&lt;br&gt;whether it is possible to select an ALSA card different from the default
&lt;br&gt;one for audio output.
&lt;br&gt;&amp;gt;From looking at the code it seems like the PATH part of --output is
&lt;br&gt;used, however
&lt;br&gt;&amp;nbsp; madplay --output=alsa:plughw:1 myfile.mp3
&lt;br&gt;chokes as the TYPE alsa does not exist (in audio.c).
&lt;br&gt;&lt;br&gt;Did I miss something in the command line or is this a bug / missing
&lt;br&gt;feature (for which I could provide a patch)?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-Thomas
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
You can try:
&lt;br&gt;madplay -o wave:- something.mp3 | aplay
&lt;br&gt;&lt;br&gt;Regards
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;You may also need 
&lt;br&gt;mount /dev/sda1 -o remount,async,noatime
&lt;br&gt;on nslu2 to get better usb transfer, so you won't experience hangs during playback.
&lt;br&gt;&lt;br&gt;Regards</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplay%3A-How-to-select-a-specific-ALSA-card-tp14695714p19568128.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19484099</id>
	<title>Re: madplay: How to select a specific ALSA card</title>
	<published>2008-09-14T13:35:47Z</published>
	<updated>2008-09-19T01:14:08Z</updated>
	<author>
		<name>joker1999</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Thomas Reitmayr-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;I just started using madplay a short while ago and I was wondering
&lt;br&gt;whether it is possible to select an ALSA card different from the default
&lt;br&gt;one for audio output.
&lt;br&gt;&amp;gt;From looking at the code it seems like the PATH part of --output is
&lt;br&gt;used, however
&lt;br&gt;&amp;nbsp; madplay --output=alsa:plughw:1 myfile.mp3
&lt;br&gt;chokes as the TYPE alsa does not exist (in audio.c).
&lt;br&gt;&lt;br&gt;Did I miss something in the command line or is this a bug / missing
&lt;br&gt;feature (for which I could provide a patch)?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-Thomas
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
You can try:
&lt;br&gt;madplay -o wave:- something.mp3 | aplay
&lt;br&gt;&lt;br&gt;Regards</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplay%3A-How-to-select-a-specific-ALSA-card-tp14695714p19484099.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18423268</id>
	<title>Re: Converting fixed point numbers</title>
	<published>2008-07-12T13:07:04Z</published>
	<updated>2008-07-12T13:07:04Z</updated>
	<author>
		<name>Rob Leslie</name>
	</author>
	<content type="html">On Jul 12, 2008, at 10:56 AM, Reiner wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; madplay uses the following in audio_linear_round
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /* quantize and scale */
&lt;br&gt;&amp;gt; return sample &amp;gt;&amp;gt; (MAD_F_FRACBITS + 1 - bits);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if bits is 16 (unsigned short e,g) we will shift 13 bits, whats &amp;nbsp;
&lt;br&gt;&amp;gt; about the 3 MSB bits ???
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With this I think only the first digit of the whole part is taken, &amp;nbsp;
&lt;br&gt;&amp;gt; what is with the sign and the other 2 digits from the whole part, &amp;nbsp;
&lt;br&gt;&amp;gt; are they never used?
&lt;/div&gt;&lt;br&gt;The whole part is used to represent samples that are above full scale &amp;nbsp;
&lt;br&gt;[-1.0, 1.0) but madplay clips these prior to scaling, so at this point &amp;nbsp;
&lt;br&gt;the whole part just contains copies of the sign bit.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rob Leslie
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18423268&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Converting-fixed-point-numbers-tp18422172p18423268.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18422172</id>
	<title>Converting fixed point numbers</title>
	<published>2008-07-12T10:56:50Z</published>
	<updated>2008-07-12T10:56:50Z</updated>
	<author>
		<name>Reiner-6</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;madplay uses the following in audio_linear_round
&lt;br&gt;&lt;br&gt;&amp;nbsp; /* quantize and scale */
&lt;br&gt;&amp;nbsp; return sample &amp;gt;&amp;gt; (MAD_F_FRACBITS + 1 - bits);
&lt;br&gt;&lt;br&gt;if bits is 16 (unsigned short e,g) we will shift 13 bits, whats about 
&lt;br&gt;the 3 MSB bits ???
&lt;br&gt;&lt;br&gt;With this I think only the first digit of the whole part is taken, what 
&lt;br&gt;is with the sign and the other 2 digits from the whole part, are they 
&lt;br&gt;never used?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Reiner
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Converting-fixed-point-numbers-tp18422172p18422172.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17734645</id>
	<title>libmad documentation project</title>
	<published>2008-06-09T07:46:21Z</published>
	<updated>2008-06-09T07:46:21Z</updated>
	<author>
		<name>Michelle Baert-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I recently started working on a small audio processing project. I chose
&lt;br&gt;to use mad library for dealing with mp3 files.
&lt;br&gt;&lt;br&gt;Since I needed to study it for getting enough understanding of it, and
&lt;br&gt;the package TODO file calls for contributors to documentation project, I
&lt;br&gt;tried to make my notes useful for the programmers community.
&lt;br&gt;&lt;br&gt;One thing I like in java programming is the documentation facility,
&lt;br&gt;which generates browseable API documentation directly from comments
&lt;br&gt;inserted in source files.
&lt;br&gt;&lt;br&gt;The same functionality is available for C/C++ and other languages, with
&lt;br&gt;Doxygen (open-source) program, so I decided to use it.
&lt;br&gt;&lt;br&gt;You'll find all details and files here:
&lt;br&gt;&lt;a href=&quot;http://m.baert.free.fr/contrib/docs/libmad/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://m.baert.free.fr/contrib/docs/libmad/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Your comments and suggestions are welcome.
&lt;br&gt;TIA for them.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Best regards,
&lt;br&gt;Michelle Baert
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/libmad-documentation-project-tp17734645p17734645.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17367492</id>
	<title>Re: madplayer cross-compile on ARM11 compilation error	&quot;impossible constraint in 'asm'&quot;</title>
	<published>2008-05-21T06:05:11Z</published>
	<updated>2008-05-21T06:05:11Z</updated>
	<author>
		<name>Jianfeng Li</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;Thank you so much for your help, Rob!&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Regards,&lt;BR&gt;
Jeff&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;

&lt;HR id=stopSpelling&gt;
&lt;BR&gt;
&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17367492&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17367492&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mad-dev@...&lt;/a&gt;&lt;BR&gt;&amp;gt; Date: Sun, 18 May 2008 19:40:12 -0700&lt;BR&gt;&amp;gt; Subject: Re: [mad-dev] madplayer cross-compile on ARM11 compilation error &quot;impossible constraint in 'asm'&quot;&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; On May 18, 2008, at 12:33 AM, Jianfeng Li wrote:&lt;BR&gt;&amp;gt; &amp;gt; I am now trying to cross-compile the madplayer on an arm11 based &lt;BR&gt;&amp;gt; &amp;gt; embedded system. The compiler I am using is from montavista &lt;BR&gt;&amp;gt; &amp;gt; mobilinux 5.0.&lt;BR&gt;&amp;gt; &amp;gt;&lt;BR&gt;&amp;gt; &amp;gt; When I tried to build the madplay, for the file resample.c, I got 2 &lt;BR&gt;&amp;gt; &amp;gt; errors on line 89 and 104. The error information is &quot;impossible &lt;BR&gt;&amp;gt; &amp;gt; constraint in 'asm'. When I tried to build the libmad, I also met &lt;BR&gt;&amp;gt; &amp;gt; the same error. But it seems that during compilation if &quot;FPM-ARM&quot; &lt;BR&gt;&amp;gt; &amp;gt; option is enabled then the error is solved. But here I checked the &lt;BR&gt;&amp;gt; &amp;gt; Makefile, there is no such option of &quot;FPM&quot; as in the Makefile of &lt;BR&gt;&amp;gt; &amp;gt; libmad.&lt;BR&gt;&amp;gt; !
 &amp;gt;&lt;BR&gt;&amp;gt; &amp;gt; So can anybody help to tell me why this error happens, it is due to &lt;BR&gt;&amp;gt; &amp;gt; the compiler's constraint/requirement? How should I try to solve &lt;BR&gt;&amp;gt; &amp;gt; this error? Is &quot;trying to enable the FPM&quot; a good option to try?&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Running the libmad `configure' script is the usual way to cause an &lt;BR&gt;&amp;gt; appropriate FPM macro to be defined. You can force the selection using &lt;BR&gt;&amp;gt; the --enable-fpm option (e.g. --enable-fpm=arm) in case the &lt;BR&gt;&amp;gt; automatically chosen default is inappropriate for some reason.&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; Note that the FPM selection is carried into the mad.h header file &lt;BR&gt;&amp;gt; which is used by madplay et al. When cross-compiling, the resulting &lt;BR&gt;&amp;gt; mad.h could be different from the build system's mad.h so it's &lt;BR&gt;&amp;gt; important to check your include paths.&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; -- &lt;BR&gt;&amp;gt; Rob Leslie&lt;BR&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17367492&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&lt;BR&gt;&amp;gt; &lt;/div&gt;&lt;BR&gt;&lt;br /&gt;&lt;hr /&gt;Invite your mail contacts to join your friends list with Windows Live S!
 paces. It's easy! &lt;a href='http://spaces.live.com/spacesapi.aspx?wx_ac

tion=create&amp;wx_url=/friends.aspx&amp;mkt=en-us' target='_new' rel=&quot;nofollow&quot;&gt;Try it!&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplayer-cross-compile-on-ARM11-compilation-error-%22impossible-constraint-in-%27asm%27%22-tp17300052p17367492.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17346254</id>
	<title>Stream Decode</title>
	<published>2008-05-20T10:29:20Z</published>
	<updated>2008-05-20T10:29:20Z</updated>
	<author>
		<name>Alexey V Paramonov-2</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;I have the following question - is it possible to decode a stream using MAD?
&lt;br&gt;For example: I have shoutcast stream and I read it in small portions 
&lt;br&gt;(say, 40960 bytes), decode it and encode back to mp3 using LAME
&lt;br&gt;(chaning bitrate, samplerate, etc...).
&lt;br&gt;&lt;br&gt;The problem is that I have to call mad_stream_buffer with each piece of 
&lt;br&gt;stream data, decode/encode it and then if I listen the resulting mp3 
&lt;br&gt;file - I notice &amp;quot;noise&amp;quot; between theese small decoded pieces.
&lt;br&gt;Seems like it happen not only with VBR files.
&lt;br&gt;&lt;br&gt;Pseudo-code:
&lt;br&gt;&lt;br&gt;while ( bytes = read(file_id, buff, SHOUT_BUFFER_LENGTH ) ) &amp;nbsp;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; mad_stream_buffer(&amp;stream, buff, bytes );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; while(1){
&lt;br&gt;&amp;nbsp; &amp;nbsp; mad_frame_decode(&amp;frame,&amp;stream)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; int ret = lame_encode_buffer( lameGlobalFlags,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; right,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nsamples,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mp3Buf,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mp3Size );
&lt;br&gt;&amp;nbsp; &amp;nbsp; // Play resulting mp3 data
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Is it possible to decode a stream without theese &amp;quot;edge effects&amp;quot; ? May be 
&lt;br&gt;I should not re-initialize MAD buffer after each read in some way?
&lt;br&gt;Please help.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Stream-Decode-tp17346254p17346254.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17310474</id>
	<title>Re: madplayer cross-compile on ARM11 compilation error &quot;impossible constraint in 'asm'&quot;</title>
	<published>2008-05-18T19:40:12Z</published>
	<updated>2008-05-18T19:40:12Z</updated>
	<author>
		<name>Rob Leslie</name>
	</author>
	<content type="html">On May 18, 2008, at 12:33 AM, Jianfeng Li wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am now trying to cross-compile the madplayer on an arm11 based &amp;nbsp;
&lt;br&gt;&amp;gt; embedded system. &amp;nbsp;The compiler I am using is from montavista &amp;nbsp;
&lt;br&gt;&amp;gt; mobilinux 5.0.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I tried to build the madplay, for the file resample.c, I got 2 &amp;nbsp;
&lt;br&gt;&amp;gt; errors on line 89 and 104. &amp;nbsp;The error information is &amp;quot;impossible &amp;nbsp;
&lt;br&gt;&amp;gt; constraint in 'asm'. &amp;nbsp;When I tried to build the libmad, I also met &amp;nbsp;
&lt;br&gt;&amp;gt; the same error. &amp;nbsp;But it seems that during compilation if &amp;quot;FPM-ARM&amp;quot; &amp;nbsp;
&lt;br&gt;&amp;gt; option is enabled then the error is solved. &amp;nbsp;But here I checked the &amp;nbsp;
&lt;br&gt;&amp;gt; Makefile, there is no such option of &amp;quot;FPM&amp;quot; as in the Makefile of &amp;nbsp;
&lt;br&gt;&amp;gt; libmad.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So can anybody help to tell me why this error happens, it is due to &amp;nbsp;
&lt;br&gt;&amp;gt; the compiler's constraint/requirement? &amp;nbsp;How should I try to solve &amp;nbsp;
&lt;br&gt;&amp;gt; this error? &amp;nbsp;Is &amp;quot;trying to enable the FPM&amp;quot; a good option to try?
&lt;/div&gt;&lt;br&gt;Running the libmad `configure' script is the usual way to cause an &amp;nbsp;
&lt;br&gt;appropriate FPM macro to be defined. You can force the selection using &amp;nbsp;
&lt;br&gt;the --enable-fpm option (e.g. --enable-fpm=arm) in case the &amp;nbsp;
&lt;br&gt;automatically chosen default is inappropriate for some reason.
&lt;br&gt;&lt;br&gt;Note that the FPM selection is carried into the mad.h header file &amp;nbsp;
&lt;br&gt;which is used by madplay et al. When cross-compiling, the resulting &amp;nbsp;
&lt;br&gt;mad.h could be different from the build system's mad.h so it's &amp;nbsp;
&lt;br&gt;important to check your include paths.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rob Leslie
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17310474&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplayer-cross-compile-on-ARM11-compilation-error-%22impossible-constraint-in-%27asm%27%22-tp17300052p17310474.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17300052</id>
	<title>madplayer cross-compile on ARM11 compilation error &quot;impossible constraint in 'asm'&quot;</title>
	<published>2008-05-18T00:33:50Z</published>
	<updated>2008-05-18T00:33:50Z</updated>
	<author>
		<name>Jianfeng Li</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;Hi, All,&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
I am now trying to cross-compile the madplayer on an arm11 based embedded system.&amp;nbsp; The compiler I am using is from montavista mobilinux 5.0.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
When I tried to build the madplay, for the file resample.c, I got 2 errors on line 89 and 104.&amp;nbsp; The error information is &quot;impossible constraint in 'asm'.&amp;nbsp; When I tried to build the libmad, I also met the same error.&amp;nbsp; But it seems that during compilation if &quot;FPM-ARM&quot; option is enabled then the error is solved.&amp;nbsp; But here I checked the Makefile, there is no such option of &quot;FPM&quot; as in the Makefile of libmad.&amp;nbsp; &lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
So can anybody help to tell me why this error happens, it is due to the compiler's constraint/requirement?&amp;nbsp; How should I try to solve this error?&amp;nbsp; Is &quot;trying to enable the FPM&quot; a good option to try?&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Many thanks in advance!&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Regards,&lt;BR&gt;
Jeffen&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;&lt;br /&gt;&lt;hr /&gt;Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! &lt;a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us' target='_new' rel=&quot;nofollow&quot;&gt;Try it!&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplayer-cross-compile-on-ARM11-compilation-error-%22impossible-constraint-in-%27asm%27%22-tp17300052p17300052.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15181479</id>
	<title>Re: Initite loop bug in libid3tag-0.15.0b</title>
	<published>2008-01-30T04:18:22Z</published>
	<updated>2008-01-30T04:18:22Z</updated>
	<author>
		<name>john cooper-4</name>
	</author>
	<content type="html">Rahul Banerjee wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I am new to the usage of this mad library. I have a question regarding 
&lt;br&gt;&amp;gt; this. Is the fast forward playback of mp3 is supported with this library?
&lt;br&gt;&lt;br&gt;Well yes, sort of. &amp;nbsp;libmad will simply decode a stream.
&lt;br&gt;The burden is placed on the user however to direct the
&lt;br&gt;decoder to whatever bits you'd like to decode. &amp;nbsp;So to
&lt;br&gt;implement fast fwd, trick play, etc.. you'll need to
&lt;br&gt;point the decoder at the bits you'd like to render which
&lt;br&gt;say constitute snippets of audio to be rendered from a
&lt;br&gt;stream in fast forward.
&lt;br&gt;&lt;br&gt;This requires repositioning the stream pointer ahead in
&lt;br&gt;the stream and rendering frames until you have an
&lt;br&gt;error free decode and are synchronized. &amp;nbsp;Render as much
&lt;br&gt;of decoded output to the audio device for a single hop,
&lt;br&gt;reposition the decoder in the stream and repeat.
&lt;br&gt;&lt;br&gt;-john
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15181479&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.cooper@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Initite-loop-bug-in-libid3tag-0.15.0b-tp14782955p15181479.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15174609</id>
	<title>Re: Initite loop bug in libid3tag-0.15.0b</title>
	<published>2008-01-29T18:49:36Z</published>
	<updated>2008-01-29T18:49:36Z</updated>
	<author>
		<name>Rahul Banerjee-2</name>
	</author>
	<content type="html">&lt;div&gt;Hi,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I am new to the usage of this mad library. I have a question regarding this. Is the fast forward playback of mp3 is supported with this library?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks and Regards,&lt;/div&gt;
&lt;div&gt;Rahul Banerjee&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;On 1/13/08, &lt;b class=&quot;gmail_sendername&quot;&gt;Kentaro Oda&lt;/b&gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15174609&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;odaken@...&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;Hi, for the maintainer libid3tag.&lt;br&gt;&lt;br&gt;I found an infinite loop bug in libid3tag-0.15.0b library, which&lt;br&gt;
causes memory overflow.&lt;br&gt;&lt;br&gt;The problem occurs when parsing an ID3_FIELD_TYPE_STRINGLIST field,&lt;br&gt;specifically when data to be parsed is ended with &amp;#39;\0&amp;#39;.&lt;br&gt;In this case, **ptr == 0, but the condition end - *ptr is 1 so loop&lt;br&gt;
continues infinitely.&lt;br&gt;&lt;br&gt;&lt;br&gt;*** field.c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003-04-19 09:14:33.000000000 +0900&lt;br&gt;--- field-patched.c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-01-13 16:08:22.000000000 +0900&lt;br&gt;***************&lt;br&gt;*** 291,297 ****&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end = *ptr + length;&lt;br&gt;
&lt;br&gt;!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (end - *ptr &amp;gt; 0) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ucs4 == 0)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto fail;&lt;br&gt;--- 291,297 ----&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end = *ptr + length;&lt;br&gt;&lt;br&gt;!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (end - *ptr &amp;gt; 0 &amp;amp;&amp;amp; **ptr != &amp;#39;\0&amp;#39;) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ucs4 == 0)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto fail;&lt;br&gt;&lt;br&gt;&lt;br&gt;--&lt;br&gt;Kentaro Oda&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Initite-loop-bug-in-libid3tag-0.15.0b-tp14782955p15174609.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-14782955</id>
	<title>Initite loop bug in libid3tag-0.15.0b</title>
	<published>2008-01-12T23:17:36Z</published>
	<updated>2008-01-12T23:17:36Z</updated>
	<author>
		<name>Kentaro Oda</name>
	</author>
	<content type="html">Hi, for the maintainer libid3tag.
&lt;br&gt;&lt;br&gt;I found an infinite loop bug in libid3tag-0.15.0b library, which
&lt;br&gt;causes memory overflow.
&lt;br&gt;&lt;br&gt;The problem occurs when parsing an ID3_FIELD_TYPE_STRINGLIST field,
&lt;br&gt;specifically when data to be parsed is ended with '\0'.
&lt;br&gt;In this case, **ptr == 0, but the condition end - *ptr is 1 so loop
&lt;br&gt;continues infinitely.
&lt;br&gt;&lt;br&gt;&lt;br&gt;*** field.c	2003-04-19 09:14:33.000000000 +0900
&lt;br&gt;--- field-patched.c	2008-01-13 16:08:22.000000000 +0900
&lt;br&gt;***************
&lt;br&gt;*** 291,297 ****
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end = *ptr + length;
&lt;br&gt;&lt;br&gt;! &amp;nbsp; &amp;nbsp; &amp;nbsp; while (end - *ptr &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; 	ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
&lt;br&gt;&amp;nbsp; 	if (ucs4 == 0)
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp;goto fail;
&lt;br&gt;--- 291,297 ----
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end = *ptr + length;
&lt;br&gt;&lt;br&gt;! &amp;nbsp; &amp;nbsp; &amp;nbsp; while (end - *ptr &amp;gt; 0 &amp;&amp; **ptr != '\0') {
&lt;br&gt;&amp;nbsp; 	ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
&lt;br&gt;&amp;nbsp; 	if (ucs4 == 0)
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp;goto fail;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kentaro Oda
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Initite-loop-bug-in-libid3tag-0.15.0b-tp14782955p14782955.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-14695714</id>
	<title>madplay: How to select a specific ALSA card</title>
	<published>2008-01-08T10:13:45Z</published>
	<updated>2008-01-08T10:13:45Z</updated>
	<author>
		<name>Thomas Reitmayr-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I just started using madplay a short while ago and I was wondering
&lt;br&gt;whether it is possible to select an ALSA card different from the default
&lt;br&gt;one for audio output.
&lt;br&gt;&amp;gt;From looking at the code it seems like the PATH part of --output is
&lt;br&gt;used, however
&lt;br&gt;&amp;nbsp; madplay --output=alsa:plughw:1 myfile.mp3
&lt;br&gt;chokes as the TYPE alsa does not exist (in audio.c).
&lt;br&gt;&lt;br&gt;Did I miss something in the command line or is this a bug / missing
&lt;br&gt;feature (for which I could provide a patch)?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-Thomas
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/madplay%3A-How-to-select-a-specific-ALSA-card-tp14695714p14695714.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12918198</id>
	<title>Re: memory leaking in mad_layer_III?</title>
	<published>2007-09-27T03:50:40Z</published>
	<updated>2007-09-27T03:50:40Z</updated>
	<author>
		<name>Niels Roosen</name>
	</author>
	<content type="html">Rob Leslie wrote:
&lt;br&gt;&amp;gt; On Sep 26, 2007, at 2:55 PM, Niels Roosen wrote:
&lt;br&gt;&amp;gt;&amp;gt; I will post the relevant code tomorrow, should I do that as attachment
&lt;br&gt;&amp;gt;&amp;gt; or inline?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Either is fine unless it's long, in which case attachment is probably
&lt;br&gt;&amp;gt; preferred.
&lt;br&gt;&lt;br&gt;You're not going to believe this, but I seem to have solved the problem.
&lt;br&gt;&amp;nbsp;While scrutinizing the relevant code for posting I discovered a rather
&lt;br&gt;odd construct in my code (don't know why I didn't see that before) and
&lt;br&gt;after some more investigation I discovered that I was lying earlier. In
&lt;br&gt;the initialization function (which is also responsible for calling the
&lt;br&gt;mad_*_finish() functions if necessary) the condition for actually
&lt;br&gt;calling the cleanup functions was not working at all! This was because I
&lt;br&gt;mixed up something during development and clearly never tested this
&lt;br&gt;properly. So I fixed that and didn't get -any- references to lost memory
&lt;br&gt;in libmad anymore \o/.
&lt;br&gt;&lt;br&gt;Anyway, to summarize: yet another case of tunnel vision, so you try to
&lt;br&gt;explain your problem to someone else and during that process find out
&lt;br&gt;what is going wrong. So thanks nevertheless, I guess I needed this :-)
&lt;br&gt;&lt;br&gt;So I humbly apologize for being such a retard. Nevertheless, mad rocks
&lt;br&gt;my socks, it is fast and reliable unlike the mpg123 decoder which often
&lt;br&gt;fails to synchronize frames, miserably failing to decode an entire
&lt;br&gt;stream... :-)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Niels
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;quot;One of the most frightening things about your true nerd, for many
&lt;br&gt;people, is not that he's socially inept - because everybody's been there
&lt;br&gt;- but rather his complete lack of embarrassment about it.&amp;quot; - Randy
&lt;br&gt;Waterhouse in Cryptonomicon
&lt;br&gt;&lt;br&gt;n: Arnie / Arnicus &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | e: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12918198&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt;
&lt;br&gt;w: &lt;a href=&quot;http://okkernoot.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://okkernoot.net/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;irc: irc.okkernoot.net #geek | icq: 31817478
&lt;br&gt;aim: arniea a arniea &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | msn: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12918198&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arnie@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://jungletrain.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jungletrain.net/&lt;/a&gt;&amp;nbsp;- 24/7 Drum and Bass Internet Radio
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/memory-leaking-in-mad_layer_III--tp12898410p12918198.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12911698</id>
	<title>Re: memory leaking in mad_layer_III?</title>
	<published>2007-09-26T16:53:11Z</published>
	<updated>2007-09-26T16:53:11Z</updated>
	<author>
		<name>Rob Leslie</name>
	</author>
	<content type="html">On Sep 26, 2007, at 2:55 PM, Niels Roosen wrote:
&lt;br&gt;&amp;gt; I will post the relevant code tomorrow, should I do that as &amp;nbsp;
&lt;br&gt;&amp;gt; attachment or inline?
&lt;br&gt;&lt;br&gt;Either is fine unless it's long, in which case attachment is probably &amp;nbsp;
&lt;br&gt;preferred.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rob Leslie
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12911698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/memory-leaking-in-mad_layer_III--tp12898410p12911698.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12910886</id>
	<title>Re: memory leaking in mad_layer_III?</title>
	<published>2007-09-26T15:55:04Z</published>
	<updated>2007-09-26T15:55:04Z</updated>
	<author>
		<name>Niels Roosen</name>
	</author>
	<content type="html">Rob Leslie wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sep 26, 2007, at 3:40 AM, Niels Roosen wrote:
&lt;br&gt;&amp;gt;&amp;gt; Am I missing something or could it be that using mad this way hasn't
&lt;br&gt;&amp;gt;&amp;gt; been tested excessively enough and is it true that the memory
&lt;br&gt;&amp;gt;&amp;gt; alllocated in mad_layer_III() on lines 2530 and 2538 (libmad version
&lt;br&gt;&amp;gt;&amp;gt; 0.15.1b) is not freed properly? I would be delighted to either get
&lt;br&gt;&amp;gt;&amp;gt; confirmation on this or some advice on how to solve this issue.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The memory allocated in mad_layer_III() is freed in mad_frame_finish()
&lt;br&gt;&amp;gt; and mad_stream_finish(); you should make sure these are definitely being
&lt;br&gt;&amp;gt; called on the same structures you pass to mad_frame_decode().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Since you say you are making these calls, I'm at a loss to offer any
&lt;br&gt;&amp;gt; specific advice without seeing your code.
&lt;/div&gt;&lt;br&gt;What I do is initialize the decoder, decode incoming data per frame
&lt;br&gt;until the client disconnects, and then, when another client connects,
&lt;br&gt;run the mad_stream_finish() and mad_frame_finish() on the pointers to
&lt;br&gt;the relevant structures before running the initialization functions
&lt;br&gt;again, in order to clean up any remaining data in the decoder. I took
&lt;br&gt;this from some example code but unfortunately don't know what any more,
&lt;br&gt;but I suppose that is how it should be done.
&lt;br&gt;&lt;br&gt;I will post the relevant code tomorrow, should I do that as attachment
&lt;br&gt;or inline?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Niels
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;quot;One of the most frightening things about your true nerd, for many
&lt;br&gt;people, is not that he's socially inept - because everybody's been there
&lt;br&gt;- but rather his complete lack of embarrassment about it.&amp;quot; - Randy
&lt;br&gt;Waterhouse in Cryptonomicon
&lt;br&gt;&lt;br&gt;n: Arnie / Arnicus &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | e: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12910886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt;
&lt;br&gt;w: &lt;a href=&quot;http://okkernoot.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://okkernoot.net/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;irc: irc.okkernoot.net #geek | icq: 31817478
&lt;br&gt;aim: arniea a arniea &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | msn: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12910886&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arnie@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://jungletrain.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jungletrain.net/&lt;/a&gt;&amp;nbsp;- 24/7 Drum and Bass Internet Radio
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/memory-leaking-in-mad_layer_III--tp12898410p12910886.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12904510</id>
	<title>Re: memory leaking in mad_layer_III?</title>
	<published>2007-09-26T10:03:51Z</published>
	<updated>2007-09-26T10:03:51Z</updated>
	<author>
		<name>Rob Leslie</name>
	</author>
	<content type="html">On Sep 26, 2007, at 3:40 AM, Niels Roosen wrote:
&lt;br&gt;&amp;gt; Am I missing something or could it be that using mad this way &amp;nbsp;
&lt;br&gt;&amp;gt; hasn't been tested excessively enough and is it true that the &amp;nbsp;
&lt;br&gt;&amp;gt; memory alllocated in mad_layer_III() on lines 2530 and 2538 (libmad &amp;nbsp;
&lt;br&gt;&amp;gt; version 0.15.1b) is not freed properly? I would be delighted to &amp;nbsp;
&lt;br&gt;&amp;gt; either get confirmation on this or some advice on how to solve this &amp;nbsp;
&lt;br&gt;&amp;gt; issue.
&lt;br&gt;&lt;br&gt;The memory allocated in mad_layer_III() is freed in mad_frame_finish 
&lt;br&gt;() and mad_stream_finish(); you should make sure these are definitely &amp;nbsp;
&lt;br&gt;being called on the same structures you pass to mad_frame_decode().
&lt;br&gt;&lt;br&gt;Since you say you are making these calls, I'm at a loss to offer any &amp;nbsp;
&lt;br&gt;specific advice without seeing your code.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rob Leslie
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12904510&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/memory-leaking-in-mad_layer_III--tp12898410p12904510.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12898410</id>
	<title>memory leaking in mad_layer_III?</title>
	<published>2007-09-26T04:40:27Z</published>
	<updated>2007-09-26T04:40:27Z</updated>
	<author>
		<name>Niels Roosen</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;In the past while I have been rounding up development for a streaming
&lt;br&gt;server for the radio station I am part of. However, during the last
&lt;br&gt;stress testing phase I noticed that memory usage slowly increases as
&lt;br&gt;streaming clients disconnect and connect. At first I was convinced it
&lt;br&gt;was some leak in my own code but valgrind didn't confirm that this was
&lt;br&gt;happening. However, I noticed that there was quite some lost memory
&lt;br&gt;originating in the mad_layer_III() function in layer3.c:
&lt;br&gt;&lt;br&gt;==5957== 7,701 bytes in 3 blocks are definitely lost in loss record 68 of 85
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;at 0x481B72C: malloc (in
&lt;br&gt;/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x485F1C1: mad_layer_III (in /usr/lib/libmad.so.0.2.1)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x485429A: mad_frame_decode (in /usr/lib/libmad.so.0.2.1)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x7775: decode_data (server.c:318)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x9387: server (server.c:980)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x4874164: pthread_start_thread (in /lib/libpthread-0.10.so)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x4A176E9: clone (in /lib/libc-2.3.6.so)
&lt;br&gt;&lt;br&gt;==5957== 13,824 bytes in 3 blocks are definitely lost in loss record 71
&lt;br&gt;of 85
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;at 0x481CE9E: calloc (in
&lt;br&gt;/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x485F215: mad_layer_III (in /usr/lib/libmad.so.0.2.1)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x485429A: mad_frame_decode (in /usr/lib/libmad.so.0.2.1)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x7775: decode_data (server.c:318)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x9387: server (server.c:980)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x4874164: pthread_start_thread (in /lib/libpthread-0.10.so)
&lt;br&gt;==5957== &amp;nbsp; &amp;nbsp;by 0x4A176E9: clone (in /lib/libc-2.3.6.so)
&lt;br&gt;&lt;br&gt;One would assume this is just caused by memory not being free()'d up
&lt;br&gt;when the program exits, but the longer the server has run, the more
&lt;br&gt;memory was definitely lost, indicating that the memory loss originates here.
&lt;br&gt;&lt;br&gt;I use the mad library in such a way that I manually line up data and
&lt;br&gt;decode this data per frame, which is required to ensure certain
&lt;br&gt;functionality of the streaming server. I made sure that when I
&lt;br&gt;reinitialize the decoder every time I run the mad_*_finish() operations
&lt;br&gt;on all the structs I use before running mad_*_init() again. However, I
&lt;br&gt;suspect that not all allocated memory is freed as it should.
&lt;br&gt;&lt;br&gt;Am I missing something or could it be that using mad this way hasn't
&lt;br&gt;been tested excessively enough and is it true that the memory alllocated
&lt;br&gt;in mad_layer_III() on lines 2530 and 2538 (libmad version 0.15.1b) is
&lt;br&gt;not freed properly? I would be delighted to either get confirmation on
&lt;br&gt;this or some advice on how to solve this issue. If more information is
&lt;br&gt;required I will do my best to provide this.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Niels Roosen
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;quot;One of the most frightening things about your true nerd, for many
&lt;br&gt;people, is not that he's socially inept - because everybody's been there
&lt;br&gt;- but rather his complete lack of embarrassment about it.&amp;quot; - Randy
&lt;br&gt;Waterhouse in Cryptonomicon
&lt;br&gt;&lt;br&gt;n: Arnie / Arnicus &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | e: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12898410&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt;
&lt;br&gt;w: &lt;a href=&quot;http://okkernoot.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://okkernoot.net/&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;irc: irc.okkernoot.net #geek | icq: 31817478
&lt;br&gt;aim: arniea a arniea &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | msn: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12898410&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arnie@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://jungletrain.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jungletrain.net/&lt;/a&gt;&amp;nbsp;- 24/7 Drum and Bass Internet Radio
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/memory-leaking-in-mad_layer_III--tp12898410p12898410.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12552330</id>
	<title>Re: Calculation error</title>
	<published>2007-09-07T03:33:33Z</published>
	<updated>2007-09-07T03:33:33Z</updated>
	<author>
		<name>Harri Haataja-2</name>
	</author>
	<content type="html">On Fri, Aug 24, 2007 at 12:16:12PM +0200, Tim Dylla wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; I did some testing on my own implementation of mp3, and used MAD as 
&lt;br&gt;&amp;gt; reference.
&lt;br&gt;&amp;gt; Therefore I generated a sine-sweep from 0Hz to 22kHz ( as far as this is 
&lt;br&gt;&amp;gt; possible ;) ) at 0dBFS, and 48kHz Samplerate. Then I encoded it with 
&lt;br&gt;&amp;gt; Lame for a single Channel MPEG-1 Layer III Bitstream, 48kHz Samplerate, 
&lt;br&gt;&amp;gt; 320kbps Bitrate. (I don't know the exact Lame-version and optionstring 
&lt;br&gt;&amp;gt; anymore, but I didn't use anything weird)
&lt;br&gt;&lt;br&gt;&amp;gt; I'm not a friend of posting large files on a mailing list without any 
&lt;br&gt;&amp;gt; agreement with the moderator, so if someone is interested in the 
&lt;br&gt;&amp;gt; bitstream and the resulting raw file, pleas feel free to send me a message.
&lt;br&gt;&lt;br&gt;Could the generation be done with common software? (sox? clm? nyqvist?)
&lt;br&gt;That could make a sort of full automatic test system if scripted.
&lt;br&gt;&lt;br&gt;Also, a file like that might find a home on Wikimedia or Internet Archive.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;To know what you prefer, instead of humbly saying Amen
&lt;br&gt;to what the world tells you you ought to prefer,
&lt;br&gt;is to have kept your soul alive.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Robert Louis Stevenson
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Calculation-error-tp12310023p12552330.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12320803</id>
	<title>libMad Vs ffmpeg</title>
	<published>2007-08-24T16:05:29Z</published>
	<updated>2007-08-24T16:05:29Z</updated>
	<author>
		<name>Chulwoong Jeon</name>
	</author>
	<content type="html">&lt;html xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I am porting MP3 at ARM9 platform.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;If I use only fixed-point(Integer), I wonder which one is
faster between MAD mp3 decoding and ffmpeg mp3 decoding.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;CW&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/libMad-Vs-ffmpeg-tp12320803p12320803.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12318214</id>
	<title>Re: Calculation error</title>
	<published>2007-08-24T12:53:37Z</published>
	<updated>2007-08-24T12:53:37Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">Hi list again,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;there is a bug in madplay 0.15.2b, which skips some frames in certain 
&lt;br&gt;conditions. Rob Leslie seems to have a patch already in the pipeline.
&lt;br&gt;libmad is not affected at all.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim Dylla
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Tim Dylla schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Andre schrieb:
&lt;br&gt;&amp;gt;&amp;gt; Tim Dylla &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12318214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.dylla@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; MAD in contrast introduces a perceivable error right on the first
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; half wave of the sine sweep. I think, it's an overflow in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; requantization or the IMDCT (when I remember right, the huffman
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; decoder produces very high output at this moment).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Just a hunch, but if you are able to build MAD from source, maybe you
&lt;br&gt;&amp;gt;&amp;gt; could try the follow patch posted to the list a few years back...
&lt;br&gt;&amp;gt;&amp;gt; perhaps it helps ??
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; diff -ruN mad-0.14.2b_orig/libmad/layer3.c
&lt;br&gt;&amp;gt;&amp;gt; mad-0.14.2b/libmad/layer3.c
&lt;br&gt;&amp;gt;&amp;gt; --- mad-0.14.2b_orig/libmad/layer3.c &amp;nbsp; &amp;nbsp;Thu Nov &amp;nbsp;8 15:28:02 2001
&lt;br&gt;&amp;gt;&amp;gt; +++ mad-0.14.2b/libmad/layer3.c &amp;nbsp; &amp;nbsp;Tue Mar 25 15:21:12 2003
&lt;br&gt;&amp;gt;&amp;gt; @@ -910,7 +910,7 @@
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr, &amp;quot;requantize overflow (%f * 2^%d)\n&amp;quot;,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mad_f_todouble(requantized), exp);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;# endif
&lt;br&gt;&amp;gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized = MAD_F_MAX;
&lt;br&gt;&amp;gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized = MAD_F_MAX / 2;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized &amp;lt;&amp;lt;= exp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nope, same Result. I'm sorry, I'm still sticking with my diploma, so I 
&lt;br&gt;&amp;gt; don't have the time for extensive tests right now. Maybe someone can 
&lt;br&gt;&amp;gt; confirm the problem and have a look at? Feel free to contact me for the 
&lt;br&gt;&amp;gt; Bitstream in Question and the correct decoder output.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Tim Dylla
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Andre
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Calculation-error-tp12310023p12318214.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12313407</id>
	<title>Re: Calculation error</title>
	<published>2007-08-24T07:35:08Z</published>
	<updated>2007-08-24T07:35:08Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Andre schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Tim Dylla &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=12313407&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.dylla@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; MAD in contrast introduces a perceivable error right on the first
&lt;br&gt;&amp;gt;&amp;gt; half wave of the sine sweep. I think, it's an overflow in the
&lt;br&gt;&amp;gt;&amp;gt; requantization or the IMDCT (when I remember right, the huffman
&lt;br&gt;&amp;gt;&amp;gt; decoder produces very high output at this moment).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Just a hunch, but if you are able to build MAD from source, maybe you
&lt;br&gt;&amp;gt; could try the follow patch posted to the list a few years back...
&lt;br&gt;&amp;gt; perhaps it helps ??
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff -ruN mad-0.14.2b_orig/libmad/layer3.c
&lt;br&gt;&amp;gt; mad-0.14.2b/libmad/layer3.c
&lt;br&gt;&amp;gt; --- mad-0.14.2b_orig/libmad/layer3.c	Thu Nov &amp;nbsp;8 15:28:02 2001
&lt;br&gt;&amp;gt; +++ mad-0.14.2b/libmad/layer3.c	Tue Mar 25 15:21:12 2003
&lt;br&gt;&amp;gt; @@ -910,7 +910,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr, &amp;quot;requantize overflow (%f * 2^%d)\n&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;mad_f_todouble(requantized), exp);
&lt;br&gt;&amp;gt; &amp;nbsp;# endif
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized = MAD_F_MAX;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized = MAD_F_MAX / 2;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;requantized &amp;lt;&amp;lt;= exp;
&lt;/div&gt;&lt;br&gt;Nope, same Result. I'm sorry, I'm still sticking with my diploma, so I 
&lt;br&gt;don't have the time for extensive tests right now. Maybe someone can 
&lt;br&gt;confirm the problem and have a look at? Feel free to contact me for the 
&lt;br&gt;Bitstream in Question and the correct decoder output.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim Dylla
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Andre
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Calculation-error-tp12310023p12313407.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12310023</id>
	<title>Calculation error</title>
	<published>2007-08-24T04:16:12Z</published>
	<updated>2007-08-24T04:16:12Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">Hi List,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I did some testing on my own implementation of mp3, and used MAD as 
&lt;br&gt;reference.
&lt;br&gt;Therefore I generated a sine-sweep from 0Hz to 22kHz ( as far as this is 
&lt;br&gt;possible ;) ) at 0dBFS, and 48kHz Samplerate. Then I encoded it with 
&lt;br&gt;Lame for a single Channel MPEG-1 Layer III Bitstream, 48kHz Samplerate, 
&lt;br&gt;320kbps Bitrate. (I don't know the exact Lame-version and optionstring 
&lt;br&gt;anymore, but I didn't use anything weird)
&lt;br&gt;As expected, the resulting bitstream can be decoded without any obvious 
&lt;br&gt;error with my Decoder and also with the dist10 decoder.
&lt;br&gt;MAD in contrast introduces a perceivable error right on the first half 
&lt;br&gt;wave of the sine sweep. I think, it's an overflow in the requantization 
&lt;br&gt;or the IMDCT (when I remember right, the huffman decoder produces very 
&lt;br&gt;high output at this moment).
&lt;br&gt;I used MAD 0.15.2b in conjunction with MADFrontend on a 
&lt;br&gt;32bit-Windoze-machine. The option string was -b24 -d
&lt;br&gt;&lt;br&gt;I'm not a friend of posting large files on a mailing list without any 
&lt;br&gt;agreement with the moderator, so if someone is interested in the 
&lt;br&gt;bitstream and the resulting raw file, pleas feel free to send me a message.
&lt;br&gt;&lt;br&gt;With regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim Dylla
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Calculation-error-tp12310023p12310023.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12296181</id>
	<title>[Offtopic] Stories about Process Change</title>
	<published>2007-08-23T09:26:59Z</published>
	<updated>2007-08-23T09:26:59Z</updated>
	<author>
		<name>Christopher Oezbek-5</name>
	</author>
	<content type="html">Hi MAD-Hackers, Hi Rob,
&lt;br&gt;&amp;nbsp; &amp;nbsp;I am researching what happens if a developer attempts to change the way &amp;nbsp;
&lt;br&gt;a project works (in contrast to changing the software being developed) and &amp;nbsp;
&lt;br&gt;have picked MAD as a small OSS project in long-term existence that seems &amp;nbsp;
&lt;br&gt;to use a closed development strategy. I would be very interested in &amp;nbsp;
&lt;br&gt;hearing if there was ever the need to modify the development process and &amp;nbsp;
&lt;br&gt;if yes how successful have those changes been.
&lt;br&gt;&lt;br&gt;I put up a survey of 13 questions (should take between 10 and 20 minutes) &amp;nbsp;
&lt;br&gt;at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://survey.mi.fu-berlin.de/public/survey.php?name=changeEpisodeSurvey&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://survey.mi.fu-berlin.de/public/survey.php?name=changeEpisodeSurvey&lt;/a&gt;&lt;br&gt;&lt;br&gt;but you can also email me directly if you prefer.
&lt;br&gt;&lt;br&gt;Thank you very much,
&lt;br&gt;&lt;br&gt;Christopher Oezbek
&lt;br&gt;&lt;br&gt;P.S.: If you are thinking about making such a change or are currently on &amp;nbsp;
&lt;br&gt;it,
&lt;br&gt;feel free to drop me a note so I can share what I have learned so far.
&lt;br&gt;&lt;br&gt;P.P.S.: Results will be made available at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.inf.fu-berlin.de/w/SE/SurveyChange&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.inf.fu-berlin.de/w/SE/SurveyChange&lt;/a&gt;&lt;br&gt;&lt;br&gt;over the next month, where you can also find further information.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Oezbek
&lt;br&gt;Freie Universität Berlin
&lt;br&gt;&lt;a href=&quot;http://www.inf.fu-berlin.de/~oezbek/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.inf.fu-berlin.de/~oezbek/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-Offtopic--Stories-about-Process-Change-tp12296181p12296181.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12196056</id>
	<title>problem with the seeking over</title>
	<published>2007-08-17T02:13:28Z</published>
	<updated>2007-08-17T02:13:28Z</updated>
	<author>
		<name>cab-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Ok, I managed to seek in a frame 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for your help
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cab
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/problem-with-the-seeking-over-tp12196056p12196056.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-12178553</id>
	<title>Re: mad-dev Digest, seeking problem with libmad</title>
	<published>2007-08-16T03:52:42Z</published>
	<updated>2007-08-16T03:52:42Z</updated>
	<author>
		<name>cab-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;You said I had to map the current file at a seek point
&lt;br&gt;&lt;br&gt;but I just can't do itn there's a problem with the function mmap itself
&lt;br&gt;&lt;br&gt;here's my source: (from minimad)
&lt;br&gt;&lt;br&gt;int main(int argc, char *argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; struct stat stat;
&lt;br&gt;&amp;nbsp; void *fdm;
&lt;br&gt;&lt;br&gt;&amp;nbsp; if (argc != 1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 1;
&lt;br&gt;&lt;br&gt;&amp;nbsp; int fd;
&lt;br&gt;&amp;nbsp; FILE*fichier=fopen(&amp;quot;essai.mp3&amp;quot;,&amp;quot;r+&amp;quot;);
&lt;br&gt;&amp;nbsp; fd=fileno(fichier);
&lt;br&gt;&amp;nbsp; lseek(fd,10,SEEK_SET);
&lt;br&gt;&amp;nbsp; if (fstat(fd, &amp;stat) == -1 ||
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; stat.st_size == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 2;
&lt;br&gt;&amp;nbsp; fdm = mmap(0,stat.st_size/2-1 , PROT_READ, MAP_SHARED,
&lt;br&gt;fd,stat.st_size/2);
&lt;br&gt;&amp;nbsp; if (fdm == MAP_FAILED)
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 3;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; decode(fdm, stat.st_size/2-1);
&lt;br&gt;&lt;br&gt;&amp;nbsp; if (munmap(fdm, stat.st_size/2-1) == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; return 4;
&lt;br&gt;&lt;br&gt;&amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;I've got an error return 22
&lt;br&gt;&lt;br&gt;I know it's because the offset is not set to 0
&lt;br&gt;&lt;br&gt;thanks for your help
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-mad-dev-Digest%2C-seeking-problem-with-libmad-tp12178553p12178553.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11858163</id>
	<title>Re: test-bitstreams</title>
	<published>2007-07-29T22:53:37Z</published>
	<updated>2007-07-29T22:53:37Z</updated>
	<author>
		<name>Abeezar Vasi</name>
	</author>
	<content type="html">Hi Tim, 
&lt;br&gt;&lt;br&gt;We, at Patni, have obtained the test bitstreams for strict 
&lt;br&gt;conformance of the MP3-Decoder from the following link:
&lt;br&gt;&lt;a href=&quot;http://standards.iso.org/ittf/PubliclyAvailableStandards/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://standards.iso.org/ittf/PubliclyAvailableStandards/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Here you might want to click on the 11172-4:1995
&lt;br&gt;&amp;quot;Compliance testing bitstreams&amp;quot; link for the 
&lt;br&gt;conformance test vectors. These vectors do test most of the 
&lt;br&gt;features of the MP3-Decoder. 
&lt;br&gt;&lt;br&gt;Regards, 
&lt;br&gt;Abeezar Vasi. 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11858163&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mad-dev-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11858163&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mad-dev-bounces@...&lt;/a&gt;]On Behalf Of Tim Dylla
&lt;br&gt;Sent: Saturday, July 28, 2007 7:37 PM
&lt;br&gt;To: MAD-Development List
&lt;br&gt;Subject: [mad-dev] test-bitstreams
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi list,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;since I'm doing final tests on my mp3-decoder implementation for a
&lt;br&gt;Blackfin DSP, I'm searching for teststreams coming with a decoded
&lt;br&gt;reference.
&lt;br&gt;&lt;br&gt;The original ISO/IEC/Fraunhofer-teststream package contains only the
&lt;br&gt;decoded reference of the compliance bitstream. But (as you certainly
&lt;br&gt;know) it doesn't test the whole functionality of MP3 (not even short
&lt;br&gt;blocks), and the decoder in this package is crap (limited compliance,
&lt;br&gt;far away from being a reference).
&lt;br&gt;&lt;br&gt;I'm searching for more bitstreams in company with their decoded
&lt;br&gt;reference to avoid adding up deviance of the used Encoder to my test
&lt;br&gt;results. Has anyone some resource regarding this? I'm interested in
&lt;br&gt;MPEG1 and 2 - Layer III bitstreams.
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.patni.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.patni.com&lt;/a&gt;&lt;br&gt;World-Wide Partnerships. World-Class Solutions.
&lt;br&gt;_____________________________________________________________________
&lt;br&gt;&lt;br&gt;This e-mail message may contain proprietary, confidential or legally
&lt;br&gt;privileged information for the sole use of the person or entity to
&lt;br&gt;whom this message was originally addressed. Any review, e-transmission
&lt;br&gt;dissemination or other use of or taking of any action in reliance upon
&lt;br&gt;this information by persons or entities other than the intended
&lt;br&gt;recipient is prohibited. If you have received this e-mail in error
&lt;br&gt;kindly delete &amp;nbsp;this e-mail from your records. If it appears that this
&lt;br&gt;mail has been forwarded to you without proper authority, please notify
&lt;br&gt;us immediately at &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11858163&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;netadmin@...&lt;/a&gt; and delete this mail. 
&lt;br&gt;_____________________________________________________________________
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/test-bitstreams-tp11843224p11858163.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11843224</id>
	<title>test-bitstreams</title>
	<published>2007-07-28T08:06:49Z</published>
	<updated>2007-07-28T08:06:49Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">Hi list,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;since I'm doing final tests on my mp3-decoder implementation for a
&lt;br&gt;Blackfin DSP, I'm searching for teststreams coming with a decoded
&lt;br&gt;reference.
&lt;br&gt;&lt;br&gt;The original ISO/IEC/Fraunhofer-teststream package contains only the
&lt;br&gt;decoded reference of the compliance bitstream. But (as you certainly
&lt;br&gt;know) it doesn't test the whole functionality of MP3 (not even short
&lt;br&gt;blocks), and the decoder in this package is crap (limited compliance,
&lt;br&gt;far away from being a reference).
&lt;br&gt;&lt;br&gt;I'm searching for more bitstreams in company with their decoded
&lt;br&gt;reference to avoid adding up deviance of the used Encoder to my test
&lt;br&gt;results. Has anyone some resource regarding this? I'm interested in
&lt;br&gt;MPEG1 and 2 - Layer III bitstreams.
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/test-bitstreams-tp11843224p11843224.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11750681</id>
	<title>Re: Computation Speed</title>
	<published>2007-07-23T12:53:04Z</published>
	<updated>2007-07-23T12:53:04Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">john cooper schrieb:
&lt;br&gt;&amp;gt; Tim Dylla wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Now I wonder: how much MIPS needs MAD? Say, for the x86-Version
&lt;br&gt;&amp;gt;&amp;gt; optimized for Accuracy? Has anyone measured this? Or is there a Webpage
&lt;br&gt;&amp;gt;&amp;gt; with all that info, and I was just dumb? :)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; A rough approximation is about 50MIPS for a 128bps stereo
&lt;br&gt;&amp;gt; decode at 44.1khz.
&lt;br&gt;&lt;br&gt;Thanks a lot,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tim
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -john
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Computation-Speed-tp11748975p11750681.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11749633</id>
	<title>Re: Computation Speed</title>
	<published>2007-07-23T11:51:19Z</published>
	<updated>2007-07-23T11:51:19Z</updated>
	<author>
		<name>john cooper-4</name>
	</author>
	<content type="html">Tim Dylla wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Now I wonder: how much MIPS needs MAD? Say, for the x86-Version
&lt;br&gt;&amp;gt; optimized for Accuracy? Has anyone measured this? Or is there a Webpage
&lt;br&gt;&amp;gt; with all that info, and I was just dumb? :)
&lt;br&gt;&lt;br&gt;A rough approximation is about 50MIPS for a 128bps stereo
&lt;br&gt;decode at 44.1khz.
&lt;br&gt;&lt;br&gt;-john
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11749633&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.cooper@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Computation-Speed-tp11748975p11749633.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11748975</id>
	<title>Computation Speed</title>
	<published>2007-07-23T11:12:44Z</published>
	<updated>2007-07-23T11:12:44Z</updated>
	<author>
		<name>Tim Dylla-2</name>
	</author>
	<content type="html">Hello List,
&lt;br&gt;&lt;br&gt;&amp;nbsp; I'm new to this list, let me introduce myself.
&lt;br&gt;&lt;br&gt;I'm working on my Diploma for Applied Informatics, I have to implement
&lt;br&gt;the MP3-Decoder for the Analog Devices BF-533 DSP. It's the the final
&lt;br&gt;testphase regarding accuracy, where MAD really convinces. Since I want
&lt;br&gt;to leave the needed MIPS of my Algorithm low, I had to make some
&lt;br&gt;compromise between Accuracy and Speed.
&lt;br&gt;&lt;br&gt;Now I wonder: how much MIPS needs MAD? Say, for the x86-Version
&lt;br&gt;optimized for Accuracy? Has anyone measured this? Or is there a Webpage
&lt;br&gt;with all that info, and I was just dumb? :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tim Dylla
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Computation-Speed-tp11748975p11748975.html" />
</entry>

</feed>
