Skip to content

Revert STRUCT! definition in mmreg #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions src/mmreg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,20 @@ pub const SPEAKER_TOP_BACK_CENTER: ::DWORD = 0x10000;
pub const SPEAKER_TOP_BACK_RIGHT: ::DWORD = 0x20000;
pub const SPEAKER_RESERVED: ::DWORD = 0x7FFC0000;
pub const SPEAKER_ALL: ::DWORD = 0x80000000;
STRUCT!{struct WAVEFORMATEX {
wFormatTag: ::WORD,
nChannels: ::WORD,
nSamplesPerSec: ::DWORD,
nAvgBytesPerSec: ::DWORD,
nBlockAlign: ::WORD,
wBitsPerSample: ::WORD,
cbSize: ::WORD,
}}
STRUCT!{struct WAVEFORMATEXTENSIBLE {
Format: ::WAVEFORMATEX,
Samples: ::WORD,
dwChannelMask: ::DWORD,
SubFormat: ::GUID,
}}
#[repr(C, packed)] #[derive(Clone, Copy, Debug)]
pub struct WAVEFORMATEX {
pub wFormatTag: ::WORD,
pub nChannels: ::WORD,
pub nSamplesPerSec: ::DWORD,
pub nAvgBytesPerSec: ::DWORD,
pub nBlockAlign: ::WORD,
pub wBitsPerSample: ::WORD,
pub cbSize: ::WORD,
}
#[repr(C, packed)] #[derive(Clone, Copy, Debug)]
pub struct WAVEFORMATEXTENSIBLE {
pub Format: ::WAVEFORMATEX,
pub Samples: ::WORD,
pub dwChannelMask: ::DWORD,
pub SubFormat: ::GUID,
}