dsf 854 B

12345678910111213141516171819202122232425
  1. #------------------------------------------------------------
  2. # $File: dsf,v 1.1 2022/01/08 16:29:18 christos Exp $
  3. # dsf: file(1) magic for DSD Stream File
  4. # URL: https://en.wikipedia.org/wiki/Direct_Stream_Digital
  5. # Reference: https://dsd-guide.com/sites/default/files/white-papers/DSFFileFormatSpec_E.pdf
  6. 0 string DSD\x20 DSD Stream File,
  7. >0x30 leshort 1 mono,
  8. >0x30 leshort 2 stereo,
  9. >0x30 leshort 3 three-channel,
  10. >0x30 leshort 4 quad-channel,
  11. >0x30 leshort 5 3.1 4-channel,
  12. >0x30 leshort 6 five-channel,
  13. >0x30 leshort 7 5.1 surround,
  14. >0x30 default x
  15. >>0x30 leshort x unknown channel format (%d),
  16. >0x38 lelong 2822400 simple-rate,
  17. >0x38 lelong 5644800 double-rate,
  18. >0x38 default x
  19. >>0x38 lelong x %d Hz,
  20. >0x3c leshort 1 1 bit,
  21. >0x3c leshort 8 8 bit,
  22. >0x3c default x
  23. >>0x3c leshort x %d bit,
  24. >0x40 lelong x %d samples