Parallel decoding - artifacts
Vladimír Tichý <[email protected]>
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Message-ID | <CA+sSFWkuv6FRELXzJGGvUkj3u7ZXiGDwqC82J7a=2f8VuS2+yA@mail.gmail.com> |
Hi, I have a huge problem using lame to play several MP3 files at once. I have implemented a player with independent reading thread and I can use up to 5 these players in my application. Everything is OK when only one player is playing but when I launch the second one, artifacts start to appear in the output signal. I managed to reduce the amount of artifacts using mutex thread synchronization so only one player is allowed to call hip_decode1_headers method at one moment. Despite of this synchronization this method can return some wrong samples to its PCM bufers. Using a sine test signal it seems like the decoder sometimes skips some samples. I read dev thread "Thread safe lame" ( https://sourceforge.net/mailarchive/message.php?msg_id=8800413) and was wondered about the second rule: "Do not use the decoder". I hope it is possible to use lame engine to read MP3 files paralelly. Thank you for any advice. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2