#17302 - org - Sat Mar 06, 2004 12:08 am
Hi!
Can anybody tell me how to compile this 8ad codec and get it to work?
Or maybe somebody can do this for me?
I tried long time but i still dont know how it works...
#17304 - tepples - Sat Mar 06, 2004 12:53 am
What do you want to use 8ad for?
What errors have you got so far? or can't you find the first step?
You will need both DevKit Advance R5 and MinGW installed.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17322 - org - Sat Mar 06, 2004 9:49 am
I only like to play some music with my gba.
I can't do the first step, thats right.
I don't know where to get this DevKit and MinGW, there are so much files to download and i don't know the right one and how to install it.
#17340 - tepples - Sat Mar 06, 2004 5:15 pm
If you haven't already installed DevKit Advance, it appears you're a user rather than a developer. 8ad is still optimized for developers (that is, people who want to incorporate compressed sound into their games) rather than for users. If you just want to use your GBA as a portable music player, I have something even better in the works.
To install DevKit Advance on Windows, you need all of these files.
To install MinGW, get this.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17342 - org - Sat Mar 06, 2004 5:26 pm
Yes, i only want to use it to play music.
I only tried this, because i found nothing else. Ok, there are some plugins for pogoshell but they dont work for me.
#17351 - Lupin - Sat Mar 06, 2004 7:59 pm
Where did you find plugins? Let me test them! :)
Did you try this player?
http://www.gameboy-advance.net/emulated/musicplayer_advance_gba_mp3.htm
Please tell me if you can get better compression rates than the musicplayer advance.
#17353 - org - Sat Mar 06, 2004 8:23 pm
#17355 - gb_feedback - Sat Mar 06, 2004 8:45 pm
Yeah, they are my plug-ins for Pogoshell. There's a midi plug-in, a wav plug-in (pcm and adpcm), and a combined one. I have only tested on Pogoshell 1.2, and I think org must be the guy who emailed me and said he couldn't get them to work with pogo 2.0 beta 2.
As I can't build pogo 2 on my pc I've never been able to do the test but I'm sure others have had them working.
If anyone does have success I'd be pleased to hear about it.
One of my plans, for when I have time, is to convert the plug-ins to .mbz format.
By the way, org, I would have asked this on the gbaemu forum.
Another 'by the way', org, you shouldn't have a problem with these plug-ins. My son uses them and puts whole albums on a cart. He's into the music from Grand Theft Auto (Vice City). But he's using pogo 1.2 like me.
_________________
http://www.bookreader.co.uk/
#17367 - org - Sat Mar 06, 2004 11:44 pm
The e-mail wasn't mine *g
I think i tried all versions and no one worked.
Ther was only a black screen and no sound.
In some cases the black screen was only visible a very short time and then the menu again.
I hope you understand, what i try to say :)
But i will try it once again with 1.2 now
ps: i dont know if this matters, but i use a 64M Flash Advance Card
#17369 - tepples - Sat Mar 06, 2004 11:46 pm
I don't know what kind of bitrate "musicplayer advance" gets, given the lack of source code and the fact that the ".mpa" files it emits aren't real MPEG audio files (as Winamp expects). But the "something even better" I spoke of gets 30 kbps at 18 kHz; a 64 Mbit card could hold about 36 minutes of music.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17372 - org - Sun Mar 07, 2004 12:07 am
i tried it now and flashed it with the tool wich comes with pogoshell.
In the "Task-Bar" it says " Playing wav file, press B...." but it doesn't play anyting and hangs up, i have to turn the gba off to get back to the menu.
#17381 - tepples - Sun Mar 07, 2004 2:35 am
"Something even better" has arrived.
http://www.pineight.com/gba/gsm/
You probably want the "Player binary and music ROM builder".
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17387 - dagamer34 - Sun Mar 07, 2004 4:34 am
Wow... Amazing... Truly amazing....
I can't believe it but it works. And it sound good too!!
One question though, if I have a MIDI file, what is the easiest way to make convert it into a wav file?
_________________
Little kids and Playstation 2's don't mix. :(
#17390 - tepples - Sun Mar 07, 2004 6:29 am
Here's how to render MIDI into a PCM audio format: start Winamp, play with the MIDI input plug-in's settings, and use the Disk Writer output plug-in to record. If your sound card doesn't support loopback of MIDI through Windows sound, you may have to do the Good Old Analog Hole: run a patch cable from one machine playing the MIDI to another machine running Audacity.
Or you could try converting the MIDI file to an S3M file, using any of the available tools for this, and then playing the S3M through Krawall or something.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17393 - tepples - Sun Mar 07, 2004 6:55 am
Oh, and it turns out the "reset" in my GSM player doesn't work. I think I have identified the problem (trying to Visoly-bankswitch ROM while running in ROM, what a dummkopf), the cause (I had only tested my reset code in programs that run entirely from EWRAM), and the solution (reset.ewram.o). I'll re-upload once I've tested the solution thoroughly.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17398 - gb_feedback - Sun Mar 07, 2004 9:39 am
Quote: |
ps: i dont know if this matters, but i use a 64M Flash Advance Card |
Org: I've got one of those cards too, and you're right, it doesn't work. I use a Flash2Advance card for pogoshell.
edit: I have a faint recollection that the problem was that the number of executable programs with that cart was severely limited so you could try taking out all the other plug-ins and any (public domain or legally backed up) games you may have in the build, and try again. But it rather defeats the point of pogoshell.
Tepples: To save me doing the research, how does this gsm codec compare compression-wise with 8ad? 8ad is 4 bits per sample, I believe?
_________________
http://www.bookreader.co.uk/
#17410 - Lupin - Sun Mar 07, 2004 3:53 pm
tepples, you are amazing!! :)
My favourite song is now half the size as in music player advance!!! Great job!
What are the best settings for the wav input file?
#17417 - Lupin - Sun Mar 07, 2004 6:25 pm
you should think of improving the user interface a little bit, the text looks a little bit stretched (I guess you didn't add fancy gfx because of rom size). The song title needs a line break :)
I would create a new outfit for it if i would understand the code (it's pretty straightforward, but very nice!)
#17420 - tepples - Sun Mar 07, 2004 7:50 pm
gb_feedback wrote: |
how does this gsm codec compare compression-wise with 8ad? 8ad is 4 bits per sample, I believe? |
8ad is 4 bits per sample, or 73 kbps at 18157 Hz. GSM RPE-LTP is 1.65 bits per sample, or 30 kbps at 18157 Hz. I'm working on an in-between codec called "Esti" that's about 2.6 bits per sample for those few people who can't tolerate GSM. Esti will also decode faster than GSM (which uses 60% CPU) but not as fast as 8ad (which uses 6% CPU), allowing it to be used for even a moderately complex game.
For a rough comparison of the codecs I'm working with, see this page.
Lupin wrote: |
What are the best settings for the wav input file? |
16-bit, mono, 18157 Hz. If your wav files aren't in that format, Sox will resample them for you (albeit slowly) every time you build the ROM.
Quote: |
you should think of improving the user interface a little bit, the text looks a little bit stretched (I guess you didn't add fancy gfx because of rom size). |
The stretching was on purpose; I wanted to make it look a bit like a cheap MP3 player's display. I could make the font full-size at a cost of 3 KB. If you want to change anything related to the display, it's all in hud.c.
Quote: |
The song title needs a line break :) |
GBFS limits filenames to 24 characters, so leave off the artist name.
In fact, it's so good that I eat my own dogfood. I stick 115-130 BPM music in it, flash it to my Visoly FA Turbo 256 Mbit flash cart (closest still-sold equivalent is F2A 256 Mbit), and go walking. If you're already developing or pirating on the GBA, it's a lot cheaper than the MP3 players and a lot more jerk-resistant than the MP3 CD players.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17426 - Lupin - Sun Mar 07, 2004 9:00 pm
Pirating on the gba? You have weird thoughts! :P
I need to get headphones now...
#17428 - dagamer34 - Sun Mar 07, 2004 10:42 pm
Aren't we a little feisty today...
_________________
Little kids and Playstation 2's don't mix. :(
#17450 - Lupin - Mon Mar 08, 2004 4:23 pm
a pogoshell plugin would be nice too... I wouldn't have to compile it to one single rom then...
#17483 - headspin - Tue Mar 09, 2004 9:48 am
Nice work there tepples. Just curious how does this codec compare to the Sand2 demo audio in terms of quality and compression?
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game
#17503 - tepples - Tue Mar 09, 2004 6:47 pm
This uses exactly the same codec as Sand2, except run at 18157 Hz instead of 16000 Hz for better alignment with Vblank. I'm not as good at optimizing somebody else's code as the author of Sand2, which is why my version uses twice the CPU time.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#17622 - headspin - Thu Mar 11, 2004 6:58 am
Well, the author of Sand2 didn't release any of his audio code to the public.
Just had a look at the readme in Sand2, got some interesting points about how he optimised his audio code. Dunno, might be helpful.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game
#22683 - tepples - Sat Jun 26, 2004 9:54 pm
Tursi did eventually publish Sand2's source code under yet another of those "non-commercial" licenses (which aren't anywhere near meeting OSI or DFSG standards). Afterward, inspired by having completed yard work that involved cutting branches, I took another look at my own GSM decoder port and managed to cut the CPU usage a bit by unrolling the synthesis filters; now it's down to 50% on hardware.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#22696 - sgeos - Sun Jun 27, 2004 6:53 am
Lupin wrote: |
Pirating on the gba? You have weird thoughts! :P |
I envy people who have time for things like game piracy. (I also wish they would do more productive things with their time.) I have 3 or so unbeaten carts, plus another two that have been in the shrink wrap since about Xmas. Then there are the unopened e-reader cards...
-Brendan
#25494 - tepples - Tue Aug 24, 2004 1:57 am
I've updated my GSM Player yet again. People liked to complain that GSM Player was ugly; I've fixed that problem by switching to a higher resolution font for the UI. I've also updated the build environment to devkitARM R8 rather than the obsolete DevKit Advance.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.