Displaying 2 results from an estimated 2 matches for "wave_callback".
2005 Jul 20
1
Build under XP with mingw
...speexdec which always crashes when trying to use the
sound card.
I've worked a bit around it and it crashes always in module wave_out.c.
In details, the cause seems to be the use of waveOutOpen function, at
line 128:
[...]
switch ( waveOutOpen ( &dev, deviceID, &outFormat,
(DWORD)wave_callback, 0, CALLBACK_FUNCTION ) )
[...]
All the parameters seem to have their right values to perform a
successfully call.
All but the forth: ... (DWORD)wave_callback, ... which seems not to work
on my system. If i replace this parameter with a 0 (zero) this call goes
ok, the sound starts but (as expect...
2016 Jul 11
0
[PATCH] wave_out: fix casts
---
src/wave_out.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/wave_out.c b/src/wave_out.c
index 57b5703..0f871b9 100644
--- a/src/wave_out.c
+++ b/src/wave_out.c
@@ -71,7 +71,7 @@ Box ( const char* msg )
*/
static void CALLBACK
-wave_callback ( HWAVE hWave, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 )
+wave_callback ( HWAVEOUT hWave, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
{
if ( uMsg == WOM_DONE ) {
EnterCriticalSection ( &cs );
@@ -125,7 +125,7 @@ Set_WIN_Params ( FILE_T d...