SeraphSephiroth

XA Subheader information

Jan 18th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. XA Subheader Information
  2. ========================
  3.  
  4. XA subheader information is 8 bytes, 2 blocks of 4 bytes, each block being identical.
  5.  
  6. Byte Offset
  7. 0 file number
  8. 1 channel number
  9. 2 submode
  10. 3 coding info
  11. 4 file number
  12. 5 channel number
  13. 6 submode
  14. 7 coding info
  15.  
  16. Byte 0, File Number
  17. =============
  18. 0 standard data file
  19. 1-255 interleaved
  20.  
  21. Byte 1, Channel Number
  22. ======================
  23. 0-15 ADPCM
  24. 0-31 Data/Video
  25. ADPCM data can only be up to 16 channels, this would be reduced to 8 if the PlayStation didn't have double speed CD-ROM access
  26.  
  27. Byte 2, Submode
  28. ===============
  29. Split into 8 bits:
  30. Bit# Field Description
  31. 7 EOF set at end of file
  32. 6 Real time sector
  33. 5 Form
  34. 4 Trigger for use with application
  35. 3 Data set if data sector
  36. 2 Audio set if audio sector
  37. 1 Video set if video sector
  38. 0 EOR end of record
  39.  
  40. Byte 3, Coding Information
  41. ==========================
  42. Split into 8 bits:
  43. Bit# Field Description
  44. 7 Reserved 0
  45. 6 Emphasis emphasis
  46. 5,4 Bits per sample 00 = 4bit (level B/C)
  47. 01 = 8bit (level A)
  48. 3,2 Sample rate 00 = 37.8kHz (level A/B)
  49. 01 = 18.9kHz (level C)
  50. 1,0 mono/stereo 00 = mono
  51. 01 = stereo
Add Comment
Please, Sign In to add comment