home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17344 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.3 KB

  1. Xref: sparky comp.sys.amiga.programmer:17344 comp.sys.amiga.audio:4353 comp.sys.amiga.hardware:21469
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!agate!doc.ic.ac.uk!warwick!coventry!csg019
  3. From: csg019@cch.coventry.ac.uk (-~=Zaphod=~-)
  4. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.audio,comp.sys.amiga.hardware
  5. Subject: Re: Audio HARDWARE bug?
  6. Message-ID: <Bz9Arr.5vF@cck.coventry.ac.uk>
  7. Date: 14 Dec 92 15:52:15 GMT
  8. References: <1992Dec14.032539.7219@netcom.com>
  9. Sender: news@cck.coventry.ac.uk (news user)
  10. Organization: Coventry University
  11. Lines: 46
  12. Nntp-Posting-Host: cc_sysh
  13.  
  14. In article <1992Dec14.032539.7219@netcom.com> jazz@netcom.com (David C. Navas) writes:
  15. >Desperate, HELP HELP!
  16.  
  17. >-I RECEIVE *TWO* INTERRUPTS!-
  18. >
  19. >Sometimes.  Maybe 30% of the time.
  20. >
  21. >If I put a counter in my interrupt routine and print the counter out just
  22. >before I turn on the DMA and just after I do so, the count jumps up two.
  23. >I can Delay(30) before the first print routine, results are the same -- TWO
  24. >interrupts (about 30% of the time).
  25. >
  26. >How do I possibly know when to ignore the first interrupt?  Is this a known
  27. >bug in the Amiga's hardware?  Could I have a bad Paula/8520 causing this?
  28. >Which one might it be?
  29. >
  30. >Thanks for any and all help, this has been driving me bonkers for the last six
  31. >hours or so....
  32.  
  33. I had this problem for some time, the sound system generates interupts
  34. WHEN THE DMA REGISTERS HAVE BEEN LOADED. *Not when a sample finishes.
  35. Apparently they are copied to hidden  backup registers.
  36.  
  37. The way to tell if your samples has finished is to load a zero length sample
  38. after loading the address of the first sample.
  39.  
  40. So, the following sequence may occur:-
  41.  
  42. move DMAADDRESS of sample into audio hardware.
  43.  
  44. *Interupt occurs* (Clear it!)
  45.  
  46. move dummy sample into audio hardware.
  47.  
  48. *interupt occurs* This is the point when the first sample has finished.
  49.  
  50. This drove me crazy for about 3 months, before someone at Argonought
  51. software told me how to do it.
  52.  
  53.     --Steve.
  54.     
  55. -- 
  56. *******************************************************************************
  57. *        ///  A member of S.H.I.T. (Super High Intelligence Team)    ///      *
  58. *       ///        Fight, defeat and kill organized laming.         ///       *
  59. ****\\\X//********Steven Haggerty**csg019@uk.ac.cov.cck ok?*****\\\X//*********
  60.