waveoutwrite

What is the smallest audio buffer needed to produce Tone sound without distotions with WaveOUT API

允我心安 提交于 2019-12-30 12:09:50
问题 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 generating and playing the sinus wave with small buffer. Something like a peak, or "BUMP". The complete Story: I made a program that can generate Sinus sound signal in real time. The variable parameters are Frequency and Volume. The project

How long is the delay between Control.Invoke() and the calling of its Delegate?

烂漫一生 提交于 2019-12-22 05:34:08
问题 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 Invoke a separate thread (because you want to do as little as possible inside the callback function) that calls a method in my form. The form contains a class level EventHandler that handles a method within which I update UI elements with new

Problem with waveOutWrite and waveOutGetPosition deadlock

半城伤御伤魂 提交于 2019-12-20 03:13:46
问题 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 sequence, and as each buffer completes Windows calls a callback function. Inside this function, I load the next set of samples into the buffer, process them however, and then dump the buffer back into the audio queue. In this way, the audio plays

What is the latency (or delay) time for callbacks from the waveOutWrite API method?

独自空忆成欢 提交于 2019-12-09 01:45:41
问题 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 of relatively low-resolution timers which quantize their events around 15 millisecond intervals (which is large enough to cause perceptible inaccuracies). About 10 years ago, I wrote a sample application (Visual Basic 5 on Windows 95) that was a

Why would waveOutWrite() cause an exception in the debug heap?

时光怂恿深爱的人放手 提交于 2019-12-04 09:27:39
问题 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 running pretty standard code that uses waveOutWrite() to output PCM audio, I sometimes get this when running under the debugger: ntdll.dll!_DbgBreakPoint@0() ntdll.dll!_RtlpBreakPointHeap@4() + 0x28 bytes ntdll.dll!_RtlpValidateHeapEntry@12() +

What is the latency (or delay) time for callbacks from the waveOutWrite API method?

谁说胖子不能爱 提交于 2019-12-01 01:27:58
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 of relatively low-resolution timers which quantize their events around 15 millisecond intervals (which is large enough to cause perceptible inaccuracies). About 10 years ago, I wrote a sample application (Visual Basic 5 on Windows 95) that was a combined software synthesizer and MIDI player. The basic premise was a leapfrog-buffer playback system