Esempio n. 1
0
 public Player(WaveWindow parent)
 {
     parentWindow = parent;
     parentHandle = parent.Handle;
     MsgQueue     = new BlockingCollection <PlayerMsg>();
     hWaveOut     = new IntPtr();
     h_pbuffer    = new GCHandle();
     WaveOutProc  = new WinmmHook.WaveDelegate(WOM_proc);
 }
Esempio n. 2
0
        public WavePlayer(WaveForm parent)
        {
            parentWindow = parent;
            parentHandle = parent.Handle;
            MsgQueue = new BlockingCollection<PlayerMsg>();

            hWaveOut = new IntPtr();
            h_pbuffer = new GCHandle();
            WaveOutProc = new WinmmHook.WaveDelegate(WOM_proc);
        }
Esempio n. 3
0
        public Recorder(System.Windows.Forms.Form parent)
        {
            parentHandle = parent.Handle;
            MsgQueue     = new BlockingCollection <RecorderMsg>();

            hWaveIn    = new IntPtr();
            WaveInProc = new WinmmHook.WaveDelegate(WIM_proc);

            pBuffer1 = new byte[INP_BUFFER_SIZE];
            pBuffer2 = new byte[INP_BUFFER_SIZE];
            wavefmt  = new WaveFormat(22050, 16, 2);
        }
Esempio n. 4
0
        public WaveRecorder(System.Windows.Forms.Form parent)
        {
            parentHandle = parent.Handle;
            MsgQueue = new BlockingCollection<RecorderMsg>();

            hWaveIn = new IntPtr();
            WaveInProc = new WinmmHook.WaveDelegate(WIM_proc);

            pBuffer1 = new byte[INP_BUFFER_SIZE];
            pBuffer2 = new byte[INP_BUFFER_SIZE];
            waveform = new WaveFormat(11025, 8, 1);
        }