12-14-2011 04:06 PM
Hello
I use an old version Labwindows 5.5 on a Windows XP PC, with generally no special difficulties.
But with some Windows SDK functions, its seems that there are problems.
For instance, calling WaveOutOpen with the WAVE_FORMAT_QUERY option always returns 0 (no error), even with a wrong format (ex: sample rate=96000kHz, 24 bits per sample...). Code example :
i = AudioDevice (0 to n)
WAVEFORMATEX *OutWavFormat;
OutWavFormat = (WAVEFORMATEX *)malloc(sizeof(WAVEFORMATEX));
OutWavFormat->wFormatTag = WAVE_FORMAT_PCM;
OutWavFormat->nChannels = OutChannelNb;
OutWavFormat->nSamplesPerSec = SampleRate;
OutWavFormat->wBitsPerSample = BitsPerSample;
OutWavFormat->nBlockAlign = OutChannelNb*BitsPerSample/8;
OutWavFormat->nAvgBytesPerSec = SampleRate*OutChannelNb*BitsPerSample/8;
test = waveOutOpen(NULL, i, OutWavFormat, 0,0L, WAVE_FORMAT_QUERY);
I suppose the problem is due to operating system, XP instead of 2000, Windows at that time was not able to use modern sound cards (24bits, 96 ou 192kHz...).
Any simple solution to overcome this problem ? Is it possible to install a newer Windows SDK ? Or just call the corresponding XP DLL (documentation...) ?
Thanks in advance.
12-19-2011
08:23 AM
- last edited on
09-14-2026
08:37 AM
by
Content Cleaner
Hello,
Thanks you for your posting on National Instruments Forum,
The following informations can help you :
Change the Standard I/O Window Using Windows SDK Functions [link removed; example no longer available]
Brice S.
National Instruments France