298{
314
317
321 "waveInGetDevCapsA(%s): failed to get capabilities: rc=%s\n",
324 return;
325
328 "waveInGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED "
330
333 "waveInGetDevCapsA(%s): MMSYSERR_INVALPARAM expected, got %s\n",
335
338 "waveInGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
340
341 if (0)
342 {
343
346 "waveInGetDevCapsA(%s): MMSYSERR_INVALPARAM expected, got %s\n",
348
351 "waveInGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
353 }
354
357 "waveInGetDevCapsA(%s): MMSYSERR_NOERROR expected, got %s\n",
359
363 "waveInGetDevCapsW(%s): unexpected return value %s\n",
365
371 "waveInMessage(%s): failed to get interface size: rc=%s\n",
380 "got an incorrect size %d\n",
size);
385 }
389 strcpy(nameA,
"not supported");
390 }
391
395 trace(
" channels=%d formats=%05x\n",
397
399
414 }
415 }
416
417
418
421 ok(twoPages!=
NULL,
"Failed to allocate 2 pages of memory\n");
422 if (twoPages) {
424 &flOldProtect);
425 ok(
res,
"Failed to set memory access on second page\n");
441 }
442 }
444 }
445
446
450 format.nSamplesPerSec=8000;
462 } else
463 trace(
"waveInOpen(%s): WAVE_FORMAT_MULAW not supported\n",
465
469 format.nSamplesPerSec=22050;
481 } else
482 trace(
"waveInOpen(%s): WAVE_FORMAT_ADPCM not supported\n",
484
485
506 } else
507 trace(
"waveInOpen(%s): WAVE_FORMAT_EXTENSIBLE not supported\n",
509
510
531 } else
532 trace(
"waveInOpen(%s): 4 channels not supported\n",
534
535
556 } else
557 trace(
"waveInOpen(%s): 6 channels not supported\n",
559
560 if (0)
561 {
562
563
584 } else
585 trace(
"waveInOpen(%s): 24 bit samples not supported\n",
587 }
588
589
610 } else
611 trace(
"waveInOpen(%s): 32 bit samples not supported\n",
613
614
635 } else
636 trace(
"waveInOpen(%s): 32 bit float samples not supported\n",
638}
char * strcpy(char *DstString, const char *SrcString)
static const WCHAR nameW[]
#define WAVE_FORMAT_MULAW
#define WAVE_FORMAT_ADPCM
#define HeapFree(x, y, z)
#define WideCharToMultiByte
VOID WINAPI GetSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
#define DRV_QUERYDEVICEINTERFACESIZE
#define DRV_QUERYDEVICEINTERFACE
struct _WAVEFORMATEX * LPWAVEFORMATEX
#define MMSYSERR_NOTSUPPORTED
#define MMSYSERR_NODRIVER
#define MMSYSERR_INVALPARAM
#define MMSYSERR_ALLOCATED
#define MMSYSERR_INVALFLAG
#define MMSYSERR_BADDEVICEID
#define WAVE_FORMAT_DIRECT
static const unsigned int win_formats[][4]
static void wave_in_test_deviceIn(int device, WAVEFORMATEX *pwfx, DWORD format, DWORD flags, WAVEINCAPSA *pcaps)
union WAVEFORMATEXTENSIBLE::@3019 Samples
CHAR szPname[MAXPNAMELEN]
LPVOID NTAPI VirtualAlloc(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flAllocationType, IN DWORD flProtect)
BOOL NTAPI VirtualProtect(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flNewProtect, OUT PDWORD lpflOldProtect)
BOOL NTAPI VirtualFree(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD dwFreeType)
MMRESULT WINAPI waveInOpen(HWAVEIN *lphWaveIn, UINT uDeviceID, LPCWAVEFORMATEX lpFormat, DWORD_PTR dwCallback, DWORD_PTR dwInstance, DWORD dwFlags)
UINT WINAPI waveInClose(HWAVEIN hWaveIn)
UINT WINAPI waveInGetDevCapsA(UINT_PTR uDeviceID, LPWAVEINCAPSA lpCaps, UINT uSize)
UINT WINAPI waveInMessage(HWAVEIN hWaveIn, UINT uMessage, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
UINT WINAPI waveInGetDevCapsW(UINT_PTR uDeviceID, LPWAVEINCAPSW lpCaps, UINT uSize)