fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Re: path for fluid_dsound.c


From: Peter Hanappe
Subject: [fluid-dev] Re: path for fluid_dsound.c
Date: Fri, 14 May 2004 15:46:11 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3


Hi Sergey,

Good catch. For some reason applying the patch failed so I made
the changes manually. The changes are in CVS.

Cheers,
Peter



Sergey Pavlishin wrote:
Hello fluid-dev,

This path fix stack overflow during DirectSound audio
driver initialization.

I've test it under WinXP SP1, DirectX 8.1

-------------------------------------------------------------------------------------
Index: fluid_dsound.c
===================================================================
RCS file: /cvsroot/fluid/fluidsynth/src/fluid_dsound.c,v
retrieving revision 1.6
diff -u -r1.6 fluid_dsound.c
--- fluid_dsound.c      19 Mar 2004 11:52:56 -0000      1.6
+++ fluid_dsound.c      14 May 2004 05:35:40 -0000
@@ -62,11 +62,13 @@
   DWORD frame_size;
 } fluid_dsound_audio_driver_t;
-static BOOL -fluid_dsound_enum_callback(LPGUID guid, LPCSTR description, LPCSTR module, LPVOID context) +BOOL CALLBACK +fluid_dsound_enum_callback(LPGUID guid, LPCTSTR description, LPCTSTR module, LPVOID context)
 {
   fluid_settings_t* settings = (fluid_settings_t*) context;
- fluid_settings_add_option(settings, "audio.dsound.device", description); + fluid_settings_add_option(settings, "audio.dsound.device", description); + + return TRUE;
 }
void fluid_dsound_audio_driver_settings(fluid_settings_t* settings)
-------------------------------------------------------------------------------------






reply via email to

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