home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2449 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: playing 14 bit samples. how?
  5. Date: Wed, 31 Jan 96 15:12:49
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960131.48DC00.DF59@ao038.du.pipex.com>
  9. References: <john.hendrikx.48y3@grafix.xs4all.nl> <4enpm4$o1f@sunsystem5.informatik.tu-muenchen.de>
  10. NNTP-Posting-Host: ao038.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
  14. : John Hendrikx (john.hendrikx@grafix.xs4all.nl) wrote:
  15. : You calibrate the audio hardware, which does maybe not exactly play
  16. : 1/64 of max volume if volume=1 selected.
  17.  
  18. In fact, the hardware reference manual states that volume 1 plays at -36.1dB
  19. (rather than -36.0dB) relative to volume 64, so even the nominal value
  20. is slightly off. In practice the difference in volume varies with frequency as
  21. well, and this too has to be compensated for.
  22.  
  23. : : sample and using the volume to compensate for which top 8-bits your playing.
  24. : : (The other method to use 2 channels playing at different volumes seems easier
  25. : : to use though).
  26. : Yes, because you don't need to sync them so exactly.
  27.  
  28. If they aren't synced exactly, you're adding more noise than you would get by
  29. playing a single 8 bit sample - as soon as the two "halves" of the sample
  30. become desynced, you'll be playing the 8 most significant bits of one sample
  31. along with the 6 least significant bits of another => nasty noise.
  32.  
  33. The volume method is simple to use because it only requires you to split each
  34. sample in two and right shift the less significant "half" by two bits. After
  35. that it's all up to the DMA. The modulation method requires a bit more initial
  36. processing than that.
  37.  
  38. -- Mat.
  39.