Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: STE Microwire Interface
Posted by: redspecter Jul,25.2009-01:17 

Stereo samples are stored LRLRLRLR where L and R are 8-bits each. To play back a mono sample you could try...

set DMA to STEREO mode
A0=Mono Sample Data
A1=DMA buffer
D7=bufferlength in words-1

fillbuffer_loop_LEFT
move.b (a0)+,(a1)+
clr.b (a1)+
dbra d7,fillbuffer_loop_LEFT

this would play from the left channel

whereas...

fillbuffer_loop_RIGHT
clr.b (a1)+
move.b (a0)+,(a1)+
dbra d7,fillbuffer_loop_RIGHT

this would output to the right channel








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
STE Microwire Interface Bod Jul,24.2009-21:48
  Re: STE Microwire Interface redspecter Jul,25.2009-01:17
    Re: STE Microwire Interface Bod Jul,25.2009-01:46
      Re: STE Microwire Interface evil Jul,25.2009-09:13
        Re: STE Microwire Interface Bod Jul,25.2009-11:11
          Re: STE Microwire Interface evil Jul,25.2009-13:57
            Re: STE Microwire Interface gwem Jul,28.2009-10:00
              Re: STE Microwire Interface Bod Jul,28.2009-20:36
                Re: STE Microwire Interface Bod Jul,28.2009-20:37
                  Re: STE Microwire Interface Per Almered (XiA) Jul,28.2009-22:03
                    Re: STE Microwire Interface Bod Jul,29.2009-20:18


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson