ホーム › Media.Audio › waveOutPause
waveOutPause
関数波形出力デバイスの再生を一時停止する。
シグネチャ
// WINMM.dll
#include <windows.h>
DWORD waveOutPause(
HWAVEOUT hwo
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hwo | HWAVEOUT | in |
戻り値の型: DWORD
各言語での呼び出し定義
// WINMM.dll
#include <windows.h>
DWORD waveOutPause(
HWAVEOUT hwo
);[DllImport("WINMM.dll", ExactSpelling = true)]
static extern uint waveOutPause(
IntPtr hwo // HWAVEOUT
);<DllImport("WINMM.dll", ExactSpelling:=True)>
Public Shared Function waveOutPause(
hwo As IntPtr ' HWAVEOUT
) As UInteger
End Function' hwo : HWAVEOUT
Declare PtrSafe Function waveOutPause Lib "winmm" ( _
ByVal hwo As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
waveOutPause = ctypes.windll.winmm.waveOutPause
waveOutPause.restype = wintypes.DWORD
waveOutPause.argtypes = [
wintypes.HANDLE, # hwo : HWAVEOUT
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('WINMM.dll')
waveOutPause = Fiddle::Function.new(
lib['waveOutPause'],
[
Fiddle::TYPE_VOIDP, # hwo : HWAVEOUT
],
-Fiddle::TYPE_INT)#[link(name = "winmm")]
extern "system" {
fn waveOutPause(
hwo: *mut core::ffi::c_void // HWAVEOUT
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("WINMM.dll")]
public static extern uint waveOutPause(IntPtr hwo);
"@
$api = Add-Type -MemberDefinition $sig -Name 'WINMM_waveOutPause' -Namespace Win32 -PassThru
# $api::waveOutPause(hwo)#uselib "WINMM.dll"
#func global waveOutPause "waveOutPause" sptr
; waveOutPause hwo ; 戻り値は stat
; hwo : HWAVEOUT -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "WINMM.dll"
#cfunc global waveOutPause "waveOutPause" sptr
; res = waveOutPause(hwo)
; hwo : HWAVEOUT -> "sptr"; DWORD waveOutPause(HWAVEOUT hwo)
#uselib "WINMM.dll"
#cfunc global waveOutPause "waveOutPause" intptr
; res = waveOutPause(hwo)
; hwo : HWAVEOUT -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
winmm = windows.NewLazySystemDLL("WINMM.dll")
procwaveOutPause = winmm.NewProc("waveOutPause")
)
// hwo (HWAVEOUT)
r1, _, err := procwaveOutPause.Call(
uintptr(hwo),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction waveOutPause(
hwo: THandle // HWAVEOUT
): DWORD; stdcall;
external 'WINMM.dll' name 'waveOutPause';result := DllCall("WINMM\waveOutPause"
, "Ptr", hwo ; HWAVEOUT
, "UInt") ; return: DWORD●waveOutPause(hwo) = DLL("WINMM.dll", "dword waveOutPause(void*)")
# 呼び出し: waveOutPause(hwo)
# hwo : HWAVEOUT -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。