home *** CD-ROM | disk | FTP | other *** search
- Path: dispatch.news.demon.net!demon!summat.demon.co.uk
- From: mike@summat.demon.co.uk (Mike Dodd)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AUDIO INTERRUPTS!
- Date: Wed, 17 Apr 1996 20:08:13 GMT
- Message-ID: <1571.6681T1269T784@summat.demon.co.uk>
- References: <4kdrpj$kvf@svin09.win.tue.nl> <1137.6674T1301T2851@lando.demon.co.uk>
- <4klthn$3rrb@trout.ab.umd.edu> <3174E32F.3490@fs1.ee.man.ac.uk>
- NNTP-Posting-Host: summat.demon.co.uk
- X-NNTP-Posting-Host: summat.demon.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- Mike staggered back from the pub and slurred to Christos Dimitrakakis:
-
-
- CD> Hi.
- CD> I have recently tried to create some real-time sound effects,
- CD> (getting data from the parallel port and outputting to the sound chip)
- CD> but I run into several problems.
-
- Hey, I'm just about to hit this point in my own bit of coding...
-
- CD> 1) I need to send data to the audio chip directly from the CPU.
- CD> The hardware manual does not have an example about how to do this,
- CD> and furthermore it does not state in where exactly the bytes are
- CD> placed in the AUDxDAT registers.
- CD> If you look at the register index, each AUDxDAT register
- CD> occupies 6 memory locations. Where am I supposed to place data?
- CD> Which address? Which part of each long word?
-
- Huh ? the AUDxDAT register is 2-bytes; there's a following four byte block to
- align each block to a 16-byte boundary (internal gubbins being the reason, no
- doubt).
-
- As I understand the HRM, the AUDxDAT registers contain the 2 samples to be
- played consecutively, I'd imagine that the format would be...
-
- +---------|---------+
- | Sample1 Sample2 |
- +---------|---------+
-
- MSB LSB
-
- Each sample is a 2's complement byte format (i.e. -128->127 volume) and the
- words are output at the channel output rate. When the second word is transferred
- to the DAC the audio interrupt is generated. Unlike DMA driving, the sample will
- not be re-played after the last sample is output.
-
- Don't know if that's any help ?
-
-
- --
- Mike (mike@summat.demon.co.uk | fidonet@2:2500/73.10)
-
-
-