C (81/254)

From:Colin Wenzel
Date:06 Apr 00 at 16:11:49
Subject:Re: Interrupt audio

On 07-Apr-00, Andrea Cometa wrote:

> Hi, first sorry for my english (I'm Italian :) ).
>
> I've a problem with the use of the audio interrupt.
> Programming in C i've use the SetIntServer(INTB_AUD0, myint0); using
> channel0, myint0 -> is_code is a function that swap two audio buffer
> in CHIP MEM. So if my sound file if bigger than 128k i can play it
> using two small buffers. But Does seem to work!
>
> Please Help Me!!!!!
>

If it does work, what is the problem ??

The is_Code field should point to the actual interrupt
routine that is called when the buffer is empty.

This routine should just refresh the buffer pointer &
clear down the interrupt bit, reinitialize the buffer
& restart DMA again to the new buffer....

Don't forget to disable the interrupt before exit &
free the resources.

PS: The audio data being played HAS TO BE in chip mem.

-------------------------------------
Colin Wenzel. Australia.

EMAIL: mailto:colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, EGS Spectrum.
---------------------------------------

------------------------------------------------------------------------
PERFORM CPR ON YOUR APR!
Get a NextCard Visa, in 30 seconds! Get rates as low as
0.0% Intro or 9.9% Fixed APR and no hidden fees.
Apply NOW!
http://click.egroups.com/1/2121/1/_/451227/_/955034152/
------------------------------------------------------------------------