Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29
I would like to incorporate a few of my FamiTracker files into a flash game I am building with Flixel. Unfortunately, after a few hours of search I haven't been able to find a reasonable way to do so. I've found [url=http://www.photonstorm.com/flod]Flod a library that is able to play Amiga, PC, and Atari files, but not (from what I can tell) NSF files. I've also found [url=http://www.p1xl.com/fun/flashnsf/]FlashNSF Player which solves my problem, but I can't integrate it into my game because the developers do not provide source code.
Has anyone else here run into my dilemma? If so, I would appreciate any advice you could give me.
If you're worried about finding a not-horrible wav to mp3 converter, VLC media player is free (and pretty useful otherwise) and converting with it is simple.
The only issue I've had with it is that for some reason it sometimes repeats the first quarter of a second or so after conversion, so I tend to import the wav file I'm converting into Audacity and generate a half second or so of silence before the beginning of the song.
All you have to do is go to Media > Convert/Save > Add (choose your wav) > Convert/Save > then go to Profile at the bottom and choose Audio-Mp3 and either choose your destination or just hit Start.
[quote=Doxic]You could always export as WAV?[/quote]
I could, but Flixel doesn't support WAV files. Even if I did find a way to play them, they are very large compared to tracker files and would take a long time to load.
[quote=rainwarrior]Can't you just use a regular audio format like MP3 or OGG? Why would you want to build an NSF player into a flash game?[/quote]
The problem with using MP3s as background music is that the format includes a split-second pause at the beginning of every file, which interferes with seamless looping. I haven't looked into OGG.
[quote=Xyz_39808]I'd imagine Auriplane might have some pointers since the soundtrack to Snailiad was done in FT.[/quote]
Great advice! I actually stumbled on Auriplane's post in [url=http://forums.flixel.org/index.php/topic,5814.msg33678.html#msg33678]this thread on the Flixel forum last night after posting here. The thread convinced me to shift my focus to MilkyTracker in order to produce XM files, which are supported by FLOD. I prefer working with FamiTracker, but XM files are tens of times smaller than MP3s and loop seamlessly.
Alas
Anyway, thanks again for all of your responses, I really appreciate your feedback!