I have installed your environment from your site http://fpc4gp2x.eonclash.com/ and compile your gp2x_tutorial successfully.
It runs under gp2x well. So added the unit SDL_Mixer and insert following lines:
Code:
const
cFrequenz = MIX_DEFAULT_FREQUENCY;
cAudioFormat = AUDIO_S16;
cChannels = MIX_DEFAULT_CHANNELS;
cChunksize = 128;
After calling of SDL_Init, i add those lines:
Code:
if (Mix_OpenAudio(cFrequenz, cAudioFormat, cChannels, cChunksize) < 0)
then begin
WriteLn(Format('Couldn''t set %d Hz audio\n- Reason: %s', [cFrequenz, SDL_GetError()]));
end;
And, what happen? Yes, it crashed on gp2x in function Mix_OpenAudio.
Any idea what i can do?
cheers,
Thomas
Bookmarks