fluid-dev
[Top][All Lists]
Advanced

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

[fluid-dev] path for fluid_dsound.c


From: Sergey Pavlishin
Subject: [fluid-dev] path for fluid_dsound.c
Date: Fri, 14 May 2004 12:41:45 +0700

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)
-------------------------------------------------------------------------------------

-- 
Best regards,
Sergey Pavlishin
address@hidden

Attachment: patch_dsound.
Description: Binary data


reply via email to

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