[mad-dev] madplay or libmad eating out the last part of the audio output

Alexandru Munteanu m at ioalex.net
Sat Jun 4 13:36:29 PDT 2011


Hello,

This mail is related to the following mp3splt bug report:
http://sourceforge.net/tracker/index.php?func=detail&aid=2424463&group_id=55130&atid=476061

What I was trying to find out is why the audio output length is different using other
decoders or different madplay "options"

I have made some tests on the attached file; here are the results :
-------------------------------------------------------------------

  - madplay with alsa output does not outputs the last part of the file (the laughter is
    missing)
  - madplay with wave output, then playing the created file with 'aplay' plays it entirely
    (with the laughter)
  - madplay on windows (MAD frontend version 1.4.1 - http://members.home.nl/w.speek/mad_frontend.htm)
    plays the whole
  - mpg123 also plays it entirely

I don't understand why the audio output is different.

I first tried to compare the number of frames and the frame sizes of mpg123 and libmad,
but they were the same.

Do you know how can I debug this further ?
Any help is appreciated.


Some more details :
-------------------

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux testing (wheezy)
Release:        testing
Codename:       wheezy

$ uname -a
Linux xxx 2.6.38-2-amd64 #1 SMP Sun May 8 13:51:57 UTC 2011 x86_64 GNU/Linux

$ madplay --version
MPEG Audio Decoder 0.15.1 (beta)
  Copyright © 2000-2004 Underbit Technologies, Inc.
  Build options: DEBUG FPM_DEFAULT

ID3 Tag Library 0.15.1 (beta)
  Copyright © 2000-2004 Underbit Technologies, Inc.
  Build options: NDEBUG

madplay 0.15.2 (beta)
  Copyright © 2000-2004 Robert Leslie
  Build options: DEBUG AUDIO_DEFAULT=audio_alsa ENABLE_NLS

$ mpg123 --version
mpg123 1.12.1

$ dpkg -l | grep "alsa-"
ii  alsa-base                             1.0.23+dfsg-4                     ALSA driver configuration files
ii  alsa-utils                            1.0.23-5+b1                       Utilities for configuring and using ALSA

-- 
Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp3splt emmy bye laugh 1 00.mp3
Type: audio/mpeg
Size: 16391 bytes
Desc: not available
URL: <http://www.mars.org/pipermail/mad-dev/attachments/20110604/47a5c052/attachment.mp3>


More information about the mad-dev mailing list