Making .gba roms with PCX images with sound?

AkitoUF

Well-Known Member
OP
Member
Joined
Jan 5, 2016
Messages
297
Trophies
0
Age
32
XP
789
Country
Chile
I know how to bring PCX images to a .gba file with PCX Viewer with the devkit and also know you can make slideshows with music with JPEGs, the problem is JPEG is a horrible format with lots of artifacts in the resulting image.
Is there a way to add a .wav music file to a gba rom made with PCXViewer or to bring a pcx image from there to a rom made with GBA JPEG Viewer?
 

SylverReZ

The planet is fine. The people are crazy.
Member
Joined
Sep 13, 2022
Messages
7,310
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,528
Country
United Kingdom
Use the MaxMod library. You place your (.wav) file into the "data" folder, and define them using the following:

(i.e., "myeffect.wav")

Code:
    mm_sound_effect myeffect = {
        { SFX_MYEFFECT } ,            // id
        (int)(1.0f * (1<<10)),    // rate
        0,        // handle
        255,    // volume
        0,        // panning
    };

mmEffect(&myeffect);

More information can be found in the developer documentation: https://maxmod.devkitpro.org/ref/
Or use one of the examples that come with devkitPro.
 

AkitoUF

Well-Known Member
OP
Member
Joined
Jan 5, 2016
Messages
297
Trophies
0
Age
32
XP
789
Country
Chile
Use the MaxMod library. You place your (.wav) file into the "data" folder, and define them using the following:

(i.e., "myeffect.wav")

Code:
    mm_sound_effect myeffect = {
        { SFX_MYEFFECT } ,            // id
        (int)(1.0f * (1<<10)),    // rate
        0,        // handle
        255,    // volume
        0,        // panning
    };

mmEffect(&myeffect);

More information can be found in the developer documentation: https://maxmod.devkitpro.org/ref/
Or use one of the examples that come with devkitPro.
Thanks! Will give this a try.
Last time I tried a lot of different things trying to copy lines from the MaxMod makefile file into the pcx makefile to just place a wav music file with the PCX image of my choosing but nothing worked.
There's also this size limitation with the files?
 

Jayro

MediCat USB Dev
Developer
Joined
Jul 23, 2012
Messages
13,040
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,222
Country
United States
Thanks! Will give this a try.
Last time I tried a lot of different things trying to copy lines from the MaxMod makefile file into the pcx makefile to just place a wav music file with the PCX image of my choosing but nothing worked.
There's also this size limitation with the files?
If you get this working, I'd like to know too. I can get PCXView working but I'd love some music to go with it. ^_^
 
  • Like
Reactions: SylverReZ

Jayro

MediCat USB Dev
Developer
Joined
Jul 23, 2012
Messages
13,040
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,222
Country
United States
devkitPro has a PCX example for GBA too, and yes, its possible to use MaxMod to add music or sound.
I have devkit pro, thats what I've been using. I guess I just don't know how to install MaxMod to the devkit Pro directories.
 

Jayro

MediCat USB Dev
Developer
Joined
Jul 23, 2012
Messages
13,040
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,222
Country
United States
MaxMod should already be bundled after installing DKP on your PC. Usually, it should be located in "devkitpro/libgba/lib/libmm.a".
I have to get to bed, but I'll explore this tomorrow night after work. Looks like a fun rabbit hole if I can get it working.
 
  • Like
Reactions: SylverReZ

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    hmmm 360 even lol
  • Psionic Roshambo @ Psionic Roshambo:
    Well I was getting a discount so 320 is probably right
  • BigOnYa @ BigOnYa:
    That is cheap, I used to pay $100 for a tine.
  • Psionic Roshambo @ Psionic Roshambo:
    Tine? One gram?
  • BigOnYa @ BigOnYa:
    Sixteenth
  • Psionic Roshambo @ Psionic Roshambo:
    Also it was literally out of a kilo when I got it off the boat so absolutely pure
  • Psionic Roshambo @ Psionic Roshambo:
    Holy shiz that's a lot
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol
    +1
  • BigOnYa @ BigOnYa:
    I'd be afraid to it nowdays, my heart would explode prob. I just stick beers n buds nowdays.
  • Psionic Roshambo @ Psionic Roshambo:
    I would get to drive from tarpon springs to like Miami a thousand bucks lol do that twice a week and back in 92 that was good money
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    @Psionic Roshambo what are you guys talking about?
  • Psionic Roshambo @ Psionic Roshambo:
    Blew it on women and muscle cars lol
    +1
  • BigOnYa @ BigOnYa:
    @Xdqwerty Hamster food, its pricey nowadays to keep PCs running.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I don't do anything except cigarettes and gotta stop eventually lol
    +1
  • BigOnYa @ BigOnYa:
    I'd do shrooms again if could find, and I was outside camping/fishing, and had a cooler full of beer.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I wouldn't mind some LSD, laughing until my face hurt sounds fun lol
    +1
  • BigOnYa @ BigOnYa:
    You ever try soaper powder/qauludes? I did once and like a dumbass drank beer on top of taking, I woke up laying in my backyard in the pouring rain, it knocked me out. I have not seen it around in many many years.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No never tried a lot of things but never that lol
  • Psionic Roshambo @ Psionic Roshambo:
    I did pass out one time on a floor after taking a bunch of Ambien lol thought it would help me sleep and did it lol
  • Psionic Roshambo @ Psionic Roshambo:
    Girlfriend was working at a pharmacy and stole like 500 of them, was and still is the biggest pill bottle I have ever seen lol
  • K3Nv2 @ K3Nv2:
    Ativan is pretty legit
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    The last time I had to take something to help me sleep, I was prescribed Trazadone it was pretty OK to be honest.
  • Psionic Roshambo @ Psionic Roshambo:
    Not something I need at all these days, doing a lot better lol
    Psionic Roshambo @ Psionic Roshambo: Not something I need at all these days, doing a lot better lol