Welcome, Guest. Please login or register.

Author Topic: Amiga sound playback routine/format questions  (Read 3969 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga sound playback routine/format questions
« on: August 09, 2010, 11:16:06 PM »
14bit audio is quite easy.

Create two 8bit sample buffers the same length, load one with all the highbyte data of the 16bit sample and load the other with the lowbyte data. Set the volume of channel 0 to 1 and the volume of channel 3 to 64 then play both samples back at the same time with the highbyte data in the full volume channel and the lowbyte data in the volume 1 channel. That gives you your left 14bit channel.

Do the same for channels 1 and 2 for your right audio!

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show all replies
    • http://www.troubled-mind.com
Re: Amiga sound playback routine/format questions
« Reply #1 on: August 10, 2010, 10:51:12 AM »
Quote from: bubblebobble;574149
@bloodline

You forgot to mention that the lower byte has to be shifted down 2 bits. This is where the 14bit comes into play. 64 is only 2^6. If they had made the volume control with a granulariy of 256 instead of 64, you could get 16bit playback.


Oops, yeah I forgot about that :)