ホーム › Media.DirectShow › DVD_MUA_MixingInfo
DVD_MUA_MixingInfo
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| fMixTo0 | BOOL | 4 | +0 | +0 | チャンネルを出力0にミックスするかを示す真偽値。 |
| fMixTo1 | BOOL | 4 | +4 | +4 | チャンネルを出力1にミックスするかを示す真偽値。 |
| fMix0InPhase | BOOL | 4 | +8 | +8 | 出力0へのミックスが同位相かを示す真偽値。 |
| fMix1InPhase | BOOL | 4 | +12 | +12 | 出力1へのミックスが同位相かを示す真偽値。 |
| dwSpeakerPosition | DWORD | 4 | +16 | +16 | スピーカーの配置位置を示す。 |
各言語での定義
#include <windows.h>
// DVD_MUA_MixingInfo (x64 20 / x86 20 バイト)
typedef struct DVD_MUA_MixingInfo {
BOOL fMixTo0;
BOOL fMixTo1;
BOOL fMix0InPhase;
BOOL fMix1InPhase;
DWORD dwSpeakerPosition;
} DVD_MUA_MixingInfo;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DVD_MUA_MixingInfo
{
[MarshalAs(UnmanagedType.Bool)] public bool fMixTo0;
[MarshalAs(UnmanagedType.Bool)] public bool fMixTo1;
[MarshalAs(UnmanagedType.Bool)] public bool fMix0InPhase;
[MarshalAs(UnmanagedType.Bool)] public bool fMix1InPhase;
public uint dwSpeakerPosition;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DVD_MUA_MixingInfo
<MarshalAs(UnmanagedType.Bool)> Public fMixTo0 As Boolean
<MarshalAs(UnmanagedType.Bool)> Public fMixTo1 As Boolean
<MarshalAs(UnmanagedType.Bool)> Public fMix0InPhase As Boolean
<MarshalAs(UnmanagedType.Bool)> Public fMix1InPhase As Boolean
Public dwSpeakerPosition As UInteger
End Structureimport ctypes
from ctypes import wintypes
class DVD_MUA_MixingInfo(ctypes.Structure):
_fields_ = [
("fMixTo0", wintypes.BOOL),
("fMixTo1", wintypes.BOOL),
("fMix0InPhase", wintypes.BOOL),
("fMix1InPhase", wintypes.BOOL),
("dwSpeakerPosition", wintypes.DWORD),
]#[repr(C)]
pub struct DVD_MUA_MixingInfo {
pub fMixTo0: i32,
pub fMixTo1: i32,
pub fMix0InPhase: i32,
pub fMix1InPhase: i32,
pub dwSpeakerPosition: u32,
}import "golang.org/x/sys/windows"
type DVD_MUA_MixingInfo struct {
fMixTo0 int32
fMixTo1 int32
fMix0InPhase int32
fMix1InPhase int32
dwSpeakerPosition uint32
}type
DVD_MUA_MixingInfo = record
fMixTo0: BOOL;
fMixTo1: BOOL;
fMix0InPhase: BOOL;
fMix1InPhase: BOOL;
dwSpeakerPosition: DWORD;
end;const DVD_MUA_MixingInfo = extern struct {
fMixTo0: i32,
fMixTo1: i32,
fMix0InPhase: i32,
fMix1InPhase: i32,
dwSpeakerPosition: u32,
};type
DVD_MUA_MixingInfo {.bycopy.} = object
fMixTo0: int32
fMixTo1: int32
fMix0InPhase: int32
fMix1InPhase: int32
dwSpeakerPosition: uint32struct DVD_MUA_MixingInfo
{
int fMixTo0;
int fMixTo1;
int fMix0InPhase;
int fMix1InPhase;
uint dwSpeakerPosition;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DVD_MUA_MixingInfo サイズ: 20 バイト(x64)
dim st, 5 ; 4byte整数×5(構造体サイズ 20 / 4 切り上げ)
; fMixTo0 : BOOL (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; fMixTo1 : BOOL (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; fMix0InPhase : BOOL (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; fMix1InPhase : BOOL (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; dwSpeakerPosition : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DVD_MUA_MixingInfo
#field bool fMixTo0
#field bool fMixTo1
#field bool fMix0InPhase
#field bool fMix1InPhase
#field int dwSpeakerPosition
#endstruct
stdim st, DVD_MUA_MixingInfo ; NSTRUCT 変数を確保
st->fMixTo0 = 100
mes "fMixTo0=" + st->fMixTo0