Пример #1
0
    public static int waveInPrepareHeader(IntPtr hWaveIn, ref WaveHdr lpWaveInHdr, int uSize)
    {
        waveInPrepareHeaderDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInPrepareHeader", Typeof <waveInPrepareHeaderDelegate>()) as waveInPrepareHeaderDelegate;

        return(d(hWaveIn, ref lpWaveInHdr, uSize));
    }
Пример #2
0
    public static int waveInClose(IntPtr hwi)
    {
        waveInCloseDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInClose", Typeof <waveInCloseDelegate>()) as waveInCloseDelegate;

        return(d(hwi));
    }
Пример #3
0
    public static int waveInOpen(out IntPtr phwi, uint uDeviceID, ref WaveFormatEx lpFormat, WaveDelegate dwCallback, IntPtr dwInstance, int dwFlags)
    {
        waveInOpenDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInOpen", Typeof <waveInOpenDelegate>()) as waveInOpenDelegate;

        return(d(out phwi, uDeviceID, ref lpFormat, dwCallback, dwInstance, dwFlags));
    }
Пример #4
0
    public static int waveInAddBuffer(IntPtr hwi, ref WaveHdr pwh, int cbwh)
    {
        waveInAddBufferDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInAddBuffer", Typeof <waveInAddBufferDelegate>()) as waveInAddBufferDelegate;

        return(d(hwi, ref pwh, cbwh));
    }
Пример #5
0
    public static int waveInGetNumDevs()
    {
        waveInGetNumDevsDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInGetNumDevs", Typeof <waveInGetNumDevsDelegate>()) as waveInGetNumDevsDelegate;

        return(d());
    }
Пример #6
0
    public static int waveInGetDevCapsA(int hwo, ref WaveInCaps lpCaps, int uSize)
    {
        waveInGetDevCapsADelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInGetDevCapsA", Typeof <waveInGetDevCapsADelegate>()) as waveInGetDevCapsADelegate;

        return(d(hwo, ref lpCaps, uSize));
    }
Пример #7
0
    public static int waveInStop(IntPtr hwi)
    {
        waveInStopDelegate d = DllImportExtern.Invoke(DllImportExtern.WINMM_DLL, "waveInStop", typeof(waveInStopDelegate)) as waveInStopDelegate;

        return(d(hwi));
    }
Пример #8
0
    public static int waveInReset(IntPtr hwi)
    {
        waveInResetDelegate d = DllImportExtern.Invoke(WINMM_DLL, "waveInReset", typeof(waveInResetDelegate)) as waveInResetDelegate;

        return(d(hwi));
    }