Playing mp3s doesn't work properly
Blitz3D Forums/Blitz3D Beginners Area/Playing mp3s doesn't work properly
| ||
Hello. I posted this possible bug, but I thought that I could start little conversation with my problem here (sorry for crossposting). Now, playing music (mp3) with any Blitz-command I get sooner or later noise like CD-disc were rolling back and forth (no disc inside). This problem is with all mp3s I've tested. So, 1. Playing music with my laptop does not work properly. 1.1. Playing same files on my laptop with WinAmp works fine. 1.2 Earlier I tried to play some avi-files (Media Player) with my laptop. All I got were loud noise and no graphics. This is the part when I fear my laptop could have been damaged. 2. With my other computer all works fine. 3. Despite the fact that playing mp3s on my laptop, it gives odd effects and/or laptop jams, the same mp3 play just fine with WinAmp (laptop). --> there must be somewhere bug? |
| ||
..you should avoid Mp3 and use ogg instead with B3D.. |
| ||
regardless of whether he uses ogg or mp3 both should work in blitz3d/blitzplus fine. Perhaps post some code as to how you are loading the music/playing it. |
| ||
I've never encountered any problems playing any mp3's via Blitz3D. Perhaps there is a codec issue with the file itself? I'm not sure how exactly Blitz decompresses mp3's for play. ------------ Edit: Ive re-read the top post. Actully, I'm guessing the laptop has a sound chip based codec which is possibly struggling with the files, maybe due to CPU constraints) |
| ||
My first post in this thread has link to bug report, it's behind the "this" word. |
| ||
I'm sorry, but here your testing code works okay. You could perhaps try: -different graphic modes (graphics3d vs graphics, fullscreen vs non-fullscreen) -avoiding vwait by using Flip 0. -add a Delay in your loop -using a different mp3 format (fixed bitrate?) |
| ||
Eventually when I played music longer, I got odd effects, while using flip 0, delay 150. I tried again using WaitKey after starting the music, eventually I got odd noise. Because there is no way to play mp3s with Blitz3D properly on my laptop, but my other computer plays the mp3s fine with Blitz, it seems that there is something wrong with my laptop. Why WinAmp plays these mp3s ok is a mystery. |
| ||
Try my MP3 playing lib. If that still does the noise, then the problem isnt on B3D itself, but some codec on your laptop. Winamp could be using an internal codec to process the mp3, that's why it plays the songs right. Try playing them on Windows Media Player to see if the problem also happens. |
| ||
Media Player played ok test mp3. Your user lib worked also, the mp3 played without any odd noise. Good work! I noticed that program showed mp3's length about 70000, but song position was about at 40000 when music ended. Still this was proper position for the music to end. |
| ||
The book I learned BB3D from says that BB3D just wont play some mp3s. |
| ||
Strange, today the same mp3s I tried earlier, played ok with that little mp3-code. The problem lasted about week. |