waveout

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

Delphi - Get Wave amplitude

僤鯓⒐⒋嵵緔 提交于 2019-12-23 02:43:05
问题 I need to make Delphi library / component that takes the currently playing sound ( it does not play my apps , just the general sound of what goes on loud-speakers ) returns me the data ( the amplitude of the left and right channels ) . Currently I have it processed by scanning from the microphone. He was looking for and I tried different VU meters that are on the net ( Torry ... ) , but they are not compatible with Win7 and higher. Anyone know of a solution? Thanks 回答1: dont know if i

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

Delphi - Get Wave amplitude

白昼怎懂夜的黑 提交于 2019-12-06 14:58:24
I need to make Delphi library / component that takes the currently playing sound ( it does not play my apps , just the general sound of what goes on loud-speakers ) returns me the data ( the amplitude of the left and right channels ) . Currently I have it processed by scanning from the microphone. He was looking for and I tried different VU meters that are on the net ( Torry ... ) , but they are not compatible with Win7 and higher. Anyone know of a solution? Thanks dont know if i understood corectly, if you mean how to get peak meter for default playback device you may try this: unit Unit1;

How do you get the current sample rate of Windows audio playback?

陌路散爱 提交于 2019-12-06 08:20:41
问题 I am using the Windows waveOut API (aka MME or Multimedia Extension) mmsystem.h. Some programs change the audio playback sample rate (eg. from 44.1kHz to 48kHz), and it would be very useful for my program to detect the current playback sample rate, so it can warn users that Windows will be resampling the program's output. According to this documentation http://msdn.microsoft.com/en-us/library/aa909811.aspx, waveOutGetPlaybackRate returns the resampling % that the device is currently

How do you get the current sample rate of Windows audio playback?

邮差的信 提交于 2019-12-04 12:59:20
I am using the Windows waveOut API (aka MME or Multimedia Extension) mmsystem.h. Some programs change the audio playback sample rate (eg. from 44.1kHz to 48kHz), and it would be very useful for my program to detect the current playback sample rate, so it can warn users that Windows will be resampling the program's output. According to this documentation http://msdn.microsoft.com/en-us/library/aa909811.aspx , waveOutGetPlaybackRate returns the resampling % that the device is currently performing (eg, device plays at 44.1, and program is playing audio at 44.1 so it would return 1.0). I am

InvalidParameter calling waveOutOpen MmException

梦想与她 提交于 2019-12-02 18:24:23
问题 This code works on 32bit Windows XP but on 64bit Windows 7 it raises an exception. (on any CPU configuration) var format = NAudio.Wave.WaveFormat.CreateCustomFormat( WaveFormatEncoding.Pcm, 8000, 1, 16000, 1, 16) BufferedWaveProvider myBufferedWaveProvider = new BufferedWaveProvider(format); myWaveOut.Init(myBufferedWaveProvider); Any help? 回答1: You've created an invalid WaveFormat. PCM 8kHz mono 16 bit (which is what you seem to be trying to make) has a block align of 2. There's an easier

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