Posted: 15th Aug 2021 17:55
I used audacity to convert the mp3 file I have to 128kbps stereo. I've tried regular stereo and joint stereo. I can seem to load the mp3 just fine but when I try to play the file it gives me the "Failed to load music source filter, is the filename correct?" error. Yes they filename is correct and in the right folder. I searched the forums for help before posting this. what are the usual culprits when dealing with this? Thanks
Posted: 15th Aug 2021 21:27
Without seeing your code, here are a few suggestions right off the bat:

Check that you are looking in the correct directory
Check that your paths and filenames are spelled correctly
If on any platform other than Windows, keep in mind case-sensitivity. song.mp3 and Song.MP3 are the same in Windows, but they are different filenames in most other operating systems.
Posted: 15th Aug 2021 21:45
I have the mp3 track in the same folder as my wav sound effects. All wave sound effects load and play just fine so it's not a file location issue. The filename is verified to be spelled the same as well, even with all letters being lower-case. What else can it be?

I am using the commands like this:

Loadmusic(1, "track1.mp3")

PlayMusic(1,1)
Posted: 15th Aug 2021 22:02
What OS are you working in? Is it Linux? Is it MeeGo?
Are you playing in the player, or trying to build an EXE or APK?
Posted: 15th Aug 2021 22:04
encoding? licence? up-to-date with AGK2 version?
Posted: 15th Aug 2021 22:16
I'm using windows 10, building an .exe, encoding is what I stated before....128kbps @ 44100hz

edit: I'm using the freeware AppGameKit platform...I do plan to buy the full one when I can
Posted: 17th Aug 2021 0:26
Does OGG work?

https://www.appgamekit.com/documentation/Reference/Music.htm
Posted: 17th Aug 2021 1:17
'm using the freeware AppGameKit platform

how old is it? which version?
does it play fine without the loop flag?
see: https://forum.thegamecreators.com/thread/209719#msg2506388
found via google site search (which comes in pretty handy).

otherwise, i've always used audacity and played mp3 exports without issue.
Posted: 17th Aug 2021 19:20
I tried removing the loop part of the argument, still no dice....Guess I'm just going to have to convert the music track to a .wav file and play it that way....too bad I can't use compressed wav files-
Posted: 18th Aug 2021 0:02
Convert it to Ogg Vorbis instead. They are compressed and fully compatible.
Posted: 18th Aug 2021 7:17
At least ogg works as well as being compressed to something reasonable...thanks!