Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (
Home

[Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: komang@xxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (??)
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sun, 14 Nov 2004 12:39:03 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10972 >

> [vasc - Sun Nov 14 20:23:55 2004]:
> 
> I get the same bug on Fedora Core 3. Interestingly, it only happens 
> for the SDL plugin. If I use the ESD or ALSA plugins it works fine.

The culprit seems to be the 'Mix_OpenAudio' call.

I turned all functions into no-nops (except for 'init_sdl_audio' and
'my_init') and added a 'return TRUE' just before the
'Mix_AllocateChannels' call in 'my_init'. The help is still broken.
Yet if I move the 'return TRUE' before the 'Mix_OpenAudio' call,
the help works fine. Either this is a bug in SDL or we are calling
'Mix_OpenAudio' with bad parameters (but it still shouldn't do this sort
of thing, I suspect it is corrupting memory).





[Prev in Thread] Current Thread [Next in Thread]