basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Jul 31. 2010, 05:09
Home Help Search Calendar Login Register
News: Have you got suggestions for BasicProgramming.org? Let's hear them!
Interested in creating your own programming language? Check out the QDepartment group!

+  BASIC programming forum
|-+  Basic Coding
| |-+  Basic Interpreters.
| | |-+  sdlBasic
| | | |-+  mp3 load and play
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Reply Print
Author Topic: mp3 load and play  (Read 178 times)
gersen
Sr. Member
****
Offline Offline

Posts: 348


« on: Dec 10. 2009, 20:02 » Reply with quote

Seems I can't load mp3s.  Sad  If I convert a piece of music to ogg then it loads and plays fine, but loading and playing mp3 gives me:     SDLengine error - playMusic: music not loaded.

I guess I'm missing some SDL library but don't know what. Googling takes me in circles. Anyone have the same problem, and perhaps fixed it ?

Report to moderator   Logged
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 931



WWW
« Reply #1 on: Dec 11. 2009, 05:18 » Reply with quote

Could be a bug. I have to check. I had the same issues once. I think mp3 music gave an error, whereas mp3 sound was fine ...  Huh
Report to moderator   Logged

Best wishes,
Cybermonkey
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #2 on: Dec 11. 2009, 08:49 » Reply with quote

Could be a bug. I have to check. I had the same issues once. I think mp3 music gave an error, whereas mp3 sound was fine ...  Huh

this would not be the first time i've seen sdl have trouble with mp3's. i wrote a program (some proprietary basic using sdl, not "sdlbasic") that did fine with both ogg and mp3, but didn't like mp3's with less commonly used bitrates. try it with a variety of mp3's (note the bitrates) and ask someone on the sdl forum about it.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
gersen
Sr. Member
****
Offline Offline

Posts: 348


« Reply #3 on: Dec 12. 2009, 05:39 » Reply with quote

I've checked libraries are intact and find that I can play mp3s with the sdl mixer command "plaympeg", so I'm beginning to think it is a bug, but where to look ?
Playing mp3s is not available in the windows version anyway according to the source, and it's not a show stopper, (I can always convert to ogg).

Report to moderator   Logged
Pages: [1] Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!