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,318
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,608
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,056
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,246
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,056
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,246
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,056
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,246
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
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
    AncientBoi @ AncientBoi: I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2: +1