Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _format_magic_ &h46444E53
- Enum sample_format
- pcm_s8 ' 8 bit Signed PCM
- pcm_u8 ' 8 bit Un-Signed PCM
- pcm_s16 ' 16 bit Signed PCM
- pcm_u16 ' 16 bit Un-Signed PCM
- pcm_s32 ' 32 bit Signed PCM
- pcm_u32 ' 32 bit Un-Signed PCM
- End Enum
- Enum Channel_Format
- store_progressive ' Stored as: [c1][c1][c1][c1][c2][c2][c2][c2]
- store_interleaved ' Stored as: [c1][c2][c1][c2][c1][c2][c1][c2]
- End Snum
- type SoundHeader Feild = 1
- format As Integer ' _format_magic_ = Magic Number
- sample_fmt As Short ' What manner are the samples stored in?
- channels As Short ' How manny channels are there?
- channel_fmt As Byte ' How are the channels stored
- sample_hz As Integer ' The sample rate
- ' Reserved for future use
- reserved_1 As Byte
- reserved_2 As Short
- ' --- Everything after the header is samples ---
- end type
Add Comment
Please, Sign In to add comment