Language…
10 users online: Batata Douce, crocodileman94, DasFueller, DimeR, Dzing, Gamet2004,  icrawfish,  Nanako, temsuper1, TheXander - Guests: 275 - Bots: 298
Users: 64,795 (2,377 active)
Latest user: mathew

Echo Buffer ARAM



I am trying to insert several sampled songs (Example: Megalovania), but I get an Echo Buffer error where it says that it exceeded.

Yet, I know like a TON of hacks that heavily use sampled songs more than unsampled. I think some of them don't EVEN contain any unsampled songs.

I tried the 3 methods that the F.A.Q told me, yet nothing seems to work!


Layout created by Dominicentek
ARAM has nothing to do with how many songs you have in the ROM (not even the same thing) except for global songs since only one song and its sample set is loaded at the same time.

Echo Buffer Overflow simply means that the music engine + global sogns + the current song + all currently loaded samples + the echo buffer take more than 64 KiB of ARAM. The one which can be easily fixed is the echo buffer: The bigger the echo delay is, the bigger the echo buffer is and all you need to do is to lower the buffer or remove the echo altogether. Which is what can be done here.

Not sure where you got method 3 from the F.A.Q.: All what it mentions is to lower the echo buffer i.e. search for the command $F1 (line 76) and lower the number right after it.
if you're using custom global songs, then it's likely that they may be a little bigger than the original global songs, which in turn leaves less space in aram for regular songs.

this usually isn't really a problem except there's a lot of ports in the music section that are barely fitting in aram without breaking since they're very big beefy ports, so when you use custom global songs like i mentioned before, it's likely that they can no longer fit like in a hack with vanilla global music.

there's usually a couple of lines near the beginning of a txt that look like this:
Code
$EF $xx $yy $zz
$F1 $aa $bb $cc

(where $xx, $yy, $zz, ..., are hex numbers.)
usually, decreasing the value $aa by one will suffice to make your music insert. the music will sound ever so slightly different though, but usually it's not a big problem. (example: $F1 $08 $30 $C0 --> $F1 $07 $30 $C0).
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.


Originally posted by MarioFanGamer
ARAM has nothing to do with how many songs you have in the ROM (not even the same thing) except for global songs since only one song and its sample set is loaded at the same time.

Echo Buffer Overflow simply means that the music engine + global sogns + the current song + all currently loaded samples + the echo buffer take more than 64 KiB of ARAM. The one which can be easily fixed is the echo buffer: The bigger the echo delay is, the bigger the echo buffer is and all you need to do is to lower the buffer or remove the echo altogether. Which is what can be done here.

Not sure where you got method 3 from the F.A.Q.: All what it mentions is to lower the echo buffer i.e. search for the command $F1 (line 76) and lower the number right after it.


OK. Is it possible to remove the echo?

Originally posted by Maxodex
if you're using custom global songs, then it's likely that they may be a little bigger than the original global songs, which in turn leaves less space in aram for regular songs.

this usually isn't really a problem except there's a lot of ports in the music section that are barely fitting in aram without breaking since they're very big beefy ports, so when you use custom global songs like i mentioned before, it's likely that they can no longer fit like in a hack with vanilla global music.

there's usually a couple of lines near the beginning of a txt that look like this:
Code
$EF $xx $yy $zz
$F1 $aa $bb $cc

(where $xx, $yy, $zz, ..., are hex numbers.)
usually, decreasing the value $aa by one will suffice to make your music insert. the music will sound ever so slightly different though, but usually it's not a big problem. (example: $F1 $08 $30 $C0 --> $F1 $07 $30 $C0).


Already decreased the value






But, what happens if I remove #default/#optimized(2,3)?

Will that help? (It should help because it sacrifices how the SFX sounds

Layout created by Dominicentek
Using too many sampled global songs is a BAD idea, since global songs are always stay in the ARAM and they will eat that tiny space a lot.

I would recommend you check out some other replacements don't using a lot of custom samples.

Quote
OK. Is it possible to remove the echo?

Yes, you can just delete the $EF $xx $yy $zz and $F1 $xx $yy $zz commands.

Quote
But, what happens if I remove #default/#optimized(2,3)?

No. Delete them will mess up your in-game sound effects.


Originally posted by tcdw
Using too many sampled global songs is a BAD idea, since global songs are always stay in the ARAM and they will eat that tiny space a lot.

I would recommend you check out some other replacements don't using a lot of custom samples.


But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs

Layout created by Dominicentek
Originally posted by LOLRyan2006 Mario Fan
Originally posted by tcdw
Using too many sampled global songs is a BAD idea, since global songs are always stay in the ARAM and they will eat that tiny space a lot.

I would recommend you check out some other replacements don't using a lot of custom samples.


But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs


Some musics (that uses #default or do not have none #samples command, and was been edited) in these hacks have this command:
#samples
{
#optimized
}
This will save some ARAM.


Originally posted by Batata Douce
Originally posted by LOLRyan2006 Mario Fan
Originally posted by tcdw
Using too many sampled global songs is a BAD idea, since global songs are always stay in the ARAM and they will eat that tiny space a lot.

I would recommend you check out some other replacements don't using a lot of custom samples.


But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs


Some musics (that uses #default or do not have none #samples command, and was been edited) in these hacks have this command:
#samples
{
#optimized
}
This will save some ARAM.

OK

Layout created by Dominicentek
Originally posted by LOLRyan2006 Mario Fan
But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs

as MarioFanGamer told you, the amount of sampled songs stored in a rom has nothing to do with how much space in ARAM (audio RAM) they take at a time.
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.


Originally posted by Maxodex
Originally posted by LOLRyan2006 Mario Fan
But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs

as MarioFanGamer told you, the amount of sampled songs stored in a rom has nothing to do with how much space in ARAM (audio RAM) they take at a time.


Oh, right

Layout created by Dominicentek
Originally posted by LOLRyan2006 Mario Fan
Originally posted by tcdw
Using too many sampled global songs is a BAD idea, since global songs are always stay in the ARAM and they will eat that tiny space a lot.

I would recommend you check out some other replacements don't using a lot of custom samples.


But the problem is that I know ROM Hacks (Like Xalabias Adventure) that use a LOT of sampled songs

Let's repeat this: Only global and one local song is loaded in ARAM at the same time (any more song which uses different samples just wouldn't fit usually). In fact, the only thing what matters for missing ARAM is how much ARAM is preoccupied (music engine and global songs) and how much ARAM your song uses (the song itself, all the samples for the song and echo buffer). Lots of different song with different samples indeed take lots of data but only for ROM, never for ARAM unless you mess with global songs or even add custom sound effects and global samples which then leaves less ARAM for local songs.

Originally posted by Batata Douce
Some musics (that uses #default or do not have none #samples command, and was been edited) in these hacks have this command:
#samples
{
#optimized
}
This will save some ARAM.

The problem: Megalovania already uses an even more optimised #optimized (#optimized3) so that's out of question. And besides: An Echo Buffer overflow is unlikely if a song doesn't use samples so no #samples is already out of question.

Edit: Ninja but I have a more in-depth answer.
I think this helped me too! Thanks Batata Douce, Mario FanGamer and other people.
This error happened when he used my Windows XP Startup BRR Sound.

Subscribe to My Youtube Channel!
Where's my lasaga, Jon?