Exemple #1
0
        ///////////////////////////////////////////////////////////////////////
        //                           Constructors                            //
        ///////////////////////////////////////////////////////////////////////

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