waveOutOpen Working Properly but Voice is Low
-
hello guys... Im using waveOutOpen function to play a voice on my Landline number. Now when I play voice in windows media player it plays fine but when I play voice using waveOutOpen() it plays low (actually you"ll have with all attention and no noise around). Wjhat can be the reason. I am using following properties for format for waveInOpen() and waveOutOpen().
WAVEFORMATEX \_oFormat; LPWAVEFORMATEX \_pFormat = NULL; \_pFormat = &\_oFormat; \_pFormat->wFormatTag = WAVE\_FORMAT\_PCM; \_pFormat->cbSize = 0; \_pFormat->nChannels = 1; \_pFormat->nBlockAlign = 1; \_pFormat->wBitsPerSample = 8; \_pFormat->nSamplesPerSec = 8000; \_pFormat->nAvgBytesPerSec = 8000;
-
hello guys... Im using waveOutOpen function to play a voice on my Landline number. Now when I play voice in windows media player it plays fine but when I play voice using waveOutOpen() it plays low (actually you"ll have with all attention and no noise around). Wjhat can be the reason. I am using following properties for format for waveInOpen() and waveOutOpen().
WAVEFORMATEX \_oFormat; LPWAVEFORMATEX \_pFormat = NULL; \_pFormat = &\_oFormat; \_pFormat->wFormatTag = WAVE\_FORMAT\_PCM; \_pFormat->cbSize = 0; \_pFormat->nChannels = 1; \_pFormat->nBlockAlign = 1; \_pFormat->wBitsPerSample = 8; \_pFormat->nSamplesPerSec = 8000; \_pFormat->nAvgBytesPerSec = 8000;
Did you check the return value of waveOutOpen is MMSYSERR_NOERROR or not?
-- "Programming is an art that fights back!"