[Speex-dev] Build under XP with mingw

John Edwards john.edwards33 at ntlworld.com
Thu Jul 21 04:40:28 PDT 2005


Elio Blanca wrote:
> Hello, ev'ryone,
> i'm Elio and i don't know how to contact John Francis Edwards, author of 
> the wave_out.[ch] modules for speex, so i write here.
> I tried to build speex under my winXPsp2 environment using MSYS-1.0.10 
> and MinGW-3.4.2 with bad results. Well, not so bad, the build completes 
> successfully and speexenc works fine, encoding well-sounding voices; the 
> problem comes with 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 expected) it stops within a few 
> millisecond. (something else is not working anymore).
> Maybe was the source written to work with MSVC only? i hope no...
> Well, thank you all
> Elio.

I can confirm that this routine compiles and runs correctly under MSVC. 
I can also confirm that it compiles and crashes under MinGW32!! :( I 
suspect that this is a MinGW32 issue, but I'd be happy to be told 
otherwise, if someone knows better!!

John


More information about the Speex-dev mailing list