Im now working on sound and every since i added the line I get something to have illegal write over in what is supposed to be free area of upper memory.
CODE
Mix_OpenAudio(22050, AUDIO_S16, 2, 512);
According to my memory manager somwhere between 0x3cfffec and 0x3d00000, which is my internal struct for memory zones, it is being overwriting when i add the previous line.
I found on wiki.gp2x.org that upper memory is supposed to be reserved like this :
//0x0314C000 - 4931584 bytes Free
//0x03600000 - 16384 bytes Sound buffer
//0x03604000 - 7323648 bytes Free
//0x03D00000 - 3145727 bytes Reserved for internal buffers of MPEG H/W decoder
Maybe the zone for Sound buffer have changed ... but also i was unable to find the source for sdl_mixer port on gp2x. maybe someone could point me where i can find this function implementation so i can make sure what is going on inside.
Thank a lot
CODE
Mix_OpenAudio(22050, AUDIO_S16, 2, 512);
According to my memory manager somwhere between 0x3cfffec and 0x3d00000, which is my internal struct for memory zones, it is being overwriting when i add the previous line.
I found on wiki.gp2x.org that upper memory is supposed to be reserved like this :
//0x0314C000 - 4931584 bytes Free
//0x03600000 - 16384 bytes Sound buffer
//0x03604000 - 7323648 bytes Free
//0x03D00000 - 3145727 bytes Reserved for internal buffers of MPEG H/W decoder
Maybe the zone for Sound buffer have changed ... but also i was unable to find the source for sdl_mixer port on gp2x. maybe someone could point me where i can find this function implementation so i can make sure what is going on inside.
Thank a lot