Atari.Org
Click Here
HomeNewsServicesForumsSupport

Talk Atari

Atari.Org Forums


16/32-Bit

8-Bits

Classics

Emulation

Jaguar

Lynx

Classic Consoles Forum 8-Bits Forum 16/32 Forum
Emulation Forum Jaguar Forum Lynx Forum
 
 Subject: How about this code, for example?
Author: jack (ip100.boulder.quik.com)
Date:   04-05-2001 00:52

you are correct about the cnxns anders. but i have
an external DAC so its cool. Also, i can route
DAC thorugh DSP as i have it currently set up
(and that's cool too cause i can filter etc)

but i'm gonna try this code to volumize:

;a0-a3=sample data a4=log.volume table
;upper word of d0-d3=volume table index
;a5=DMA output buffer #xx is modified by a code-gen route
.loop
move.w (a0)+,d0
move.w (a4,d0.l),d0
lsr.w #xx,d0
move.w d0,(a5)+
----this is repeated 3 more times for
samples at a1,a2, and a3 w/ indexes of d1-d3 vs. d0
addq.l #8,a5
dbra size_of_sampleframe,.loop

of course if could cut out the lsr etc if i just
wanted a few (ie 16) volume levels
the above code only fills half of the 8 channels
so it will work in two passes

-jack

 Topics Author  Date
  CODERS: i need STE soundtracker sourcecode new jack barnes 04-03-2001 00:55 
   RE: CODERS: i need STE soundtracker sourcecode new Peter Persson 04-03-2001 16:47 
    Best way to volumize 16bit samples for DMA? new jack 04-04-2001 01:56 
     RE: Best way to volumize 16bit samples for DMA? new Anders Eriksson 04-04-2001 12:36 
      How about this code, for example?  jack 04-05-2001 00:52 
       RE: How about this code, for example? new Thomas Bergstrom 05-23-2001 12:55 

 Reply To This Message
 Your Name:
 Your Email:
 Subject:
 Human verification:   What's this?
               _    __     _ _     
 _ __  ___ _ _| |_ / _|___| (_)___ 
| '_ \/ _ \ '_|  _|  _/ _ \ | / _ \
| .__/\___/_|  \__|_| \___/_|_\___/
|_|                                
    



Copyright © 1997-2024 Atari.Org 
Atari is registered trademark of Infogrames