mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #5222 from Badaxis/badaxis/Windows-Audio&Winmm
MAKEFOURCC: changed BYTE to byte
This commit is contained in:
@@ -313,7 +313,7 @@ MMVERSION :: UINT
|
|||||||
|
|
||||||
// Input is four characters string
|
// Input is four characters string
|
||||||
// Output is little-endian u32 representation
|
// Output is little-endian u32 representation
|
||||||
MAKEFOURCC :: #force_inline proc "contextless" (s: [4]BYTE) -> DWORD {
|
MAKEFOURCC :: #force_inline proc "contextless" (s: [4]byte) -> DWORD {
|
||||||
return (DWORD(s[0])) | (DWORD(s[1]) << 8) | (DWORD(s[2]) << 16) | (DWORD(s[3]) << 24 )
|
return (DWORD(s[0])) | (DWORD(s[1]) << 8) | (DWORD(s[2]) << 16) | (DWORD(s[3]) << 24 )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user