#6568: Playing mp3 repeatedly causes distorted sound ----------------------------------------+----------------------------------- Reporter: idefix | Owner: stippi Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/MediaPlayer | Version: R1/Development Keywords: | Blocked By: Has a Patch: 0 | Platform: All Blocking: | ----------------------------------------+----------------------------------- When `MediaPlayer` plays [http://app.readspeaker.com/cgi- bin/rsent?customerid=4839&lang=nl&save=1&url=http%3A%2F%2Fwww.ns.nl%2Fgeleidelijnen%2FshowGeleidelijn.do%3Fstation%3Ddv%26arrival%3Dingang_busstation%26departure%3Dspoor_4a%252Bb&audiofilename=geleidelijn.dv.ingang_busstation.spoor_4a%2Bb the tested mp3 file] the first time, it sound normal. However, repeated plays causes distortion. Steps to reproduce: 1. Play [http://app.readspeaker.com/cgi- bin/rsent?customerid=4839&lang=nl&save=1&url=http%3A%2F%2Fwww.ns.nl%2Fgeleidelijnen%2FshowGeleidelijn.do%3Fstation%3Ddv%26arrival%3Dingang_busstation%26departure%3Dspoor_4a%252Bb&audiofilename=geleidelijn.dv.ingang_busstation.spoor_4a%2Bb the tested mp3 file] in `MediaPlayer` - notice that the sound is normal 2. Press `space` to play it again - notice that the sound is slightly distorted 3. Press `space` to play it again - notice that the sound is heavenly distorted (sounds like an inverted echo) It might take a couple of repeats longer to get the heavenly distorted sound. Tested on r38581 with an `Emuxki SB Live 5.1` sound card (real-time audio enabled). VLC plays the mp3 fine no matter how many times it repeats. Output from `MediaPlayer` when playing the file: {{{ ~/downloads> MediaPlayer ./geleidelijn.dv.ingang_busstation.spoor_4a+b.mp3 MainApp::ArgvReceived ./geleidelijn.dv.ingang_busstation.spoor_4a+b.mp3 MainApp::ArgvReceived calling RefsReceived MainWin::MessageReceived: B_REFS_RECEIVED open playlist item: geleidelijn.dv.ingang_busstation.spoor_4a+b.mp3 asfReader::asfReader asfReader::Sniff asfReader::Sniff: unsupported file type [mp3 @ 0x180be0f0]max_analyze_duration reached [mp3 @ 0x180be0f0]Estimating duration from bitrate, this may be inaccurate running without video node BMediaEventLooper: SchedulingLatency is 750 BMediaRoster::Connect connection established! performance time for 10297617382: 10232614009 B_START: start time: 10232714009 [mp2 @ 0x18103f60]incomplete frame ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer) ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 GetNextChunk error 0 key 0x5e, rawChar 0x20, modifiers 0x0 ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer) ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 GetNextChunk error 0 key 0x5e, rawChar 0x20, modifiers 0x0 ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer) ########### audio decode error, fChunkBufferSize 46, fChunkBufferOffset 0 GetNextChunk error 0 key 0x5e, rawChar 0x20, modifiers 0x0 AudioProducer::_FillNextBuffer() - no buffer (size: 3528, duration: 40000) key 0x28, rawChar 0x77, modifiers 0x402 BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 2, port 241774, team 7552 ~/downloads> }}} The sound gets heavenly distorted after {{{AudioProducer::_FillNextBuffer() - no buffer (size: 3528, duration: 40000)}}} appears in the log. -- Ticket URL: <http://dev.haiku-os.org/ticket/6568> Haiku <http://dev.haiku-os.org> Haiku - the operating system.