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,317
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,571
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,053
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,242
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,053
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,242
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,053
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,242
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
  • BigOnYa @ BigOnYa:
    I'm so pumped, NCAA football video game is back after a 10 year hiatus, coming to SeriesS/X, PS5 in July.
  • BigOnYa @ BigOnYa:
    Wish they would let us play the NCAA football 14 on newer xbox, its one of the only games I love and own on disc still, that is not back compatible, bs.
  • AdenTheThird @ AdenTheThird:
    @BigOnYa My dad recently bought a spare Series X off of me, got game pass, and saw Madden '24 on Game Pass, decided to try it out.

    ...He was a bit taken aback by the 60GB download size. Poor guy's still living in the 90s!
    +1
  • SylverReZ @ SylverReZ:
    @AdenTheThird, Bro's still in the PS2 age.
  • K3Nv2 @ K3Nv2:
    Lol charging your dad's classic unless he's the type that doesn't like taking things like that
  • AdenTheThird @ AdenTheThird:
    @K3Nv2 He was looking into consoles for his house anyway (for my younger siblings and himself) and I had a spare XSX and Switch I ended up selling him at pretty steep cuts. I would just give them to him, but I did buy them with the intent to sell them... and college is super expensive.
  • BigOnYa @ BigOnYa:
    A little yeah...
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, [insert wut here]
    +1
  • BigOnYa @ BigOnYa:
    I'm a little hi, but bout to fix that.
    +1
  • BigOnYa @ BigOnYa:
    Now I'm low, i was upstairs in my wifeys kitchen, now I'm downstairs in my dungeon.(My basement)
    +1
  • BakerMan @ BakerMan:
    do you mind? i snuck in with amiibo and jars, and am trying to do my thing brony style
  • BakerMan @ BakerMan:
    have you ever regretted saying something immediately after saying it?
    +1
  • BakerMan @ BakerMan:
    nah what i was doing was trying to cure my ever-so-apparent crabs
  • Xdqwerty @ Xdqwerty:
    @SylverReZ,
    my younger brother is forcing me to play with him and my cousins are here *sigh*
    +1
  • BigOnYa @ BigOnYa:
    @SylverReZ that Hack a hacked 360 vid was neat, never knew it existed.
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, I thought it was interesting.
    +1
  • Xdqwerty @ Xdqwerty:
    nvm this video is clickbait
  • K3Nv2 @ K3Nv2:
    I got a dazzel capture card some place in storage
    K3Nv2 @ K3Nv2: I got a dazzel capture card some place in storage