No subject

Tue Sep 2 11:01:37 CDT 2008

"This message (ACMDM_FORMAT_SUGGEST) requests an ACM driver to choose a 
preferred destination format for a conversion with a specified source 
ADPCM_FormatSuggest cannot choose a destination format if 
source format tag and destination format tag are the same, because 
msadp32.acm cannot convert number of channels or samples per second and 
because the number of bits per sample is fixed (4 for ms adpcm). Thus 
it can only operate with different format tags.
You can test it with a 
SendDriverMessage() call.

S. Guidoni

Content-Type: APPLICATION/OCTET-STREAM; name=msadp32_2.bin
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=msadp32_2.bin; size=545

--- dlls/msadp32.acm/msadp32.c	2009-01-24 19:07:37.000000000 +0100
+++ dlls/msadp32.acm/msadp32.c	2009-01-24 19:08:52.000000000 +0100
@@ -453,6 +453,7 @@ static	LRESULT	ADPCM_FormatSuggest(PACMD
     /* some tests ... */
     if (adfs->cbwfxSrc < sizeof(PCMWAVEFORMAT) ||
 	adfs->cbwfxDst < sizeof(PCMWAVEFORMAT) ||
+	adfs->pwfxSrc->wFormatTag == adfs->pwfxDst->wFormatTag ||
 	ADPCM_GetFormatIndex(adfs->pwfxSrc) == 0xFFFFFFFF) return ACMERR_NOTPOSSIBLE;
     /* FIXME: should do those tests against the real size (according to format tag */


More information about the wine-patches mailing list