Inheritance: SafeHandle
Esempio n. 1
0
        public WaveDataBlock(WaveHandle waveOutHandle, int size)
        {
            m_WaveOut = waveOutHandle;

            m_HeaderHandle = GCHandle.Alloc(m_Header, GCHandleType.Pinned);
            m_Header.dwUser = (IntPtr)GCHandle.Alloc(this);
            m_HeaderData = new byte[size];
            m_HeaderDataHandle = GCHandle.Alloc(m_HeaderData, GCHandleType.Pinned);
            m_Header.lpData = m_HeaderDataHandle.AddrOfPinnedObject();
            m_Header.dwBufferLength = size;
            MM.Check(Api.waveOutPrepareHeader(m_WaveOut, ref m_Header, Marshal.SizeOf(m_Header)));
        }
Esempio n. 2
0
 public static extern MMSysErr waveOutPause(WaveHandle h);
Esempio n. 3
0
        public static extern MMSysErr waveOutOpen(out WaveHandle hWaveOut, int uDeviceID, WaveFormat lpFormat,
													waveOutProc dwCallback, IntPtr dwInstance, WaweOutFlag dwFlags);
Esempio n. 4
0
 public static extern int waveOutGetVolume(WaveHandle h, out int dwVolume);
Esempio n. 5
0
 public static extern MMSysErr waveOutGetPosition(WaveHandle h, ref MMTIME mmtime, uint cbmmt);
Esempio n. 6
0
 public static extern int waveOutGetPosition(WaveHandle h, out int lpInfo, int uSize);
Esempio n. 7
0
 public static extern int waveOutGetPosition(WaveHandle h, out int lpInfo, int uSize);
Esempio n. 8
0
 public static extern MMSysErr waveOutUnprepareHeader(WaveHandle h, ref WaveHdr lpWaveOutHdr, int uSize);
Esempio n. 9
0
 public static extern MMSysErr waveOutWrite(WaveHandle h, ref WaveHdr lpWaveOutHdr, int uSize);
Esempio n. 10
0
 public static extern MMSysErr waveOutUnprepareHeader(WaveHandle h, ref WaveHdr lpWaveOutHdr, int uSize);
Esempio n. 11
0
 public static extern MMSysErr waveOutGetPosition(WaveHandle h, ref MMTIME mmtime, uint cbmmt);
Esempio n. 12
0
 public static extern int waveOutGetVolume(WaveHandle h, out int dwVolume);
Esempio n. 13
0
 public static extern int waveOutSetVolume(WaveHandle h, int dwVolume);
Esempio n. 14
0
 public static extern MMSysErr waveOutRestart(WaveHandle h);
Esempio n. 15
0
 public static extern MMSysErr waveOutOpen(out WaveHandle hWaveOut, int uDeviceID, WaveFormat lpFormat,
                                           waveOutProc dwCallback, IntPtr dwInstance, WaweOutFlag dwFlags);
Esempio n. 16
0
 public static extern int waveOutSetVolume(WaveHandle h, int dwVolume);
Esempio n. 17
0
 public static extern MMSysErr waveOutReset(WaveHandle h);
Esempio n. 18
0
 public static extern MMSysErr waveOutWrite(WaveHandle h, ref WaveHdr lpWaveOutHdr, int uSize);
Esempio n. 19
0
 public static extern MMSysErr waveOutPause(WaveHandle h);