/////////////////////////////////////////////////////////////////////// // Constructors // /////////////////////////////////////////////////////////////////////// // Default constructor -- Initialize some instance fields public AudioPlayer() { Buffers = new WAVEHDR[2]; Callback = waveOutProc; State = Closed; WaveHandle = IntPtr.Zero; }
private static extern int waveOutOpen(out IntPtr phwo, IntPtr uDeviceID, ref WAVEFORMATEX pwfx, woCallback dwCallback, IntPtr dwCallbackInstance, uint fdwOpen);