Guest User

Untitled

a guest
Jun 29th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define _format_magic_ &h46444E53
  2.  
  3. Enum sample_format
  4.     pcm_s8      ' 8 bit Signed PCM
  5.     pcm_u8      ' 8 bit Un-Signed PCM
  6.    
  7.     pcm_s16     ' 16 bit Signed PCM
  8.     pcm_u16     ' 16 bit Un-Signed PCM
  9.    
  10.     pcm_s32     ' 32 bit Signed PCM
  11.     pcm_u32     ' 32 bit Un-Signed PCM
  12. End Enum
  13.  
  14. Enum Channel_Format
  15.     store_progressive   ' Stored as: [c1][c1][c1][c1][c2][c2][c2][c2]
  16.     store_interleaved   ' Stored as: [c1][c2][c1][c2][c1][c2][c1][c2]
  17. End Snum
  18.  
  19. type SoundHeader Feild = 1
  20.     format      As Integer  ' _format_magic_ = Magic Number
  21.    
  22.     sample_fmt  As Short    ' What manner are the samples stored in?
  23.    
  24.     channels    As Short    ' How manny channels are there?
  25.     channel_fmt As Byte     ' How are the channels stored
  26.    
  27.     sample_hz   As Integer  ' The sample rate
  28.    
  29.     ' Reserved for future use
  30.     reserved_1  As Byte
  31.     reserved_2  As Short
  32.     ' --- Everything after the header is samples ---
  33. end type
Add Comment
Please, Sign In to add comment