public WaveOut(int buffers, int bufferSize) { wd = WaveCallback; format = new WaveFormat(44100, 16, 2); buf = new WaveBufferList(buffers, bufferSize); }
public void SetFormat(int sampleRate, int bits, int channels) { format = new WaveFormat(sampleRate, bits, channels); }
public static extern int waveOutOpen(out IntPtr hWaveOut, uint uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, int dwInstance, int dwFlags);