Questions tagged [waveoutwrite]
11 questions
13
votes
9 answers
Why would waveOutWrite() cause an exception in the debug heap?
While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here will at least serve to document my findings.
First, the symptom: While…

Ori Pessach
- 6,777
- 6
- 36
- 51
6
votes
1 answer
How long is the delay between Control.Invoke() and the calling of its Delegate?
I have a code engine that plays long WAV files by playing smaller chunks in succession using the waveOutOpen and waveOutWrite API methods. In order to update my UI as the file plays, from the callback function as each buffer completes playing I…

MusiGenesis
- 74,184
- 40
- 190
- 334
5
votes
3 answers
Double-buffered waveOutWrite() stuttering like hell
[The mystery has been solved; for those looking for an explanation, it is at the bottom of this post]
Below is a Windows tone generator I am trying to write using Windows waveOut*() functions.
Despite doing literally everything according to MSDN…

hidefromkgb
- 5,834
- 1
- 13
- 44
2
votes
3 answers
Problem with waveOutWrite and waveOutGetPosition deadlock
I'm working on an app that plays audio continuously using the waveOut... API from winmm.dll. The app uses "leapfrog" buffers, which are basically a bunch of arrays of samples that you dump into the audio queue. Windows plays them seamlessly in…

MusiGenesis
- 74,184
- 40
- 190
- 334
2
votes
2 answers
Query wave format for a HWAVEOUT handle
Context: I have a piece of code that knows the value of a waveOut handle (HWAVEOUT). However the code did not create the handle, thus the WAVEFORMATEX that was passed to waveOutOpen when creating the handle is unknown.
I want to find out the…

Dan Cristoloveanu
- 1,974
- 1
- 13
- 20
1
vote
2 answers
What is the smallest audio buffer needed to produce Tone sound without distotions with WaveOUT API
Does the WaveOut API has some internal limitation of the size for the current piece of buffer played ? I mean if I provide a very small buffer does it affects somehow the sound played to the speakers. I am experiencing very strange noise when I am…

Patrik
- 1,286
- 1
- 31
- 64
1
vote
3 answers
What is the latency (or delay) time for callbacks from the waveOutWrite API method?
I'm having a debate with some developers on another forum about accurately generating MIDI events (Note On messages and so forth). The human ear is pretty sensitive to slight timing inaccuracies, and I think their main problem comes from their use…

MusiGenesis
- 74,184
- 40
- 190
- 334
0
votes
0 answers
Is There A Way To Stop Occurence Of The Exception "WaveStillPlaying calling waveOutWrite"?
I am trying to create Music Player with visualizations such as wave view, spectrum view etc. When I debug the program, I get an Exception "WaveStillPlaying Calling waveOutWrite".
I checked the whole code for "MusicList_SelectedIndexChanged". Tried…

Coding Master
- 1
- 2
0
votes
1 answer
WaveOutWrite direct from Webcam audio capture callback
I'm capturing audiodata from Webcam, using VFW and on audio capture Callback, and at the same time, inside the body of the same capture Callback, direct the sampled data to default MAPPER, using waveOutWrite.
Signal quality from Webcam is 1…
user834850
0
votes
1 answer
How to P/Invoke WaveOut API on Windows CE 6.0 R3
How to P/Invoke WaveOut API on Windows CE 6.0 R3 ?
When I put this
[DllImport("winmm.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern MMRESULT waveOutOpen(ref IntPtr hWaveOut, int uDeviceID, ref WAVEFORMATEX lpFormat,…

Patrik
- 1,286
- 1
- 31
- 64