home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1136 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: sydney.DIALix.oz.au!not-for-mail
  2. From: accolyte@sydney.DIALix.oz.au (Troy Till)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Stopping Sound Channels
  5. Date: 16 Jan 1996 11:52:14 +1100
  6. Organization: DIALix Services, Sydney, Australia.
  7. Sender: accolyte@sydney.DIALix.oz.au
  8. Message-ID: <4desru$ope$1@sydney.DIALix.oz.au>
  9. References: <30f849ff@beachyhd.demon.co.uk>
  10. NNTP-Posting-Host: accolyte@sydney.dialix.oz.au
  11.  
  12. Adam@beachyhd.demon.co.uk wrote:
  13. : In a message of 13 Jan 96 Troy Till wrote to All:
  14. :  TT> I'm trying to stop sounds half-way through by simply turning off the 
  15. :  TT> audio dma - but most of the time I get an annoying click. I've tried 
  16. :  TT> setting the volume to zero first, and a few other things, but nothing
  17. :  TT> seems to help. Any ideas?
  18. : I could be wrong, but I think the problem is quite possibly unavoidable.
  19. : What causes the sound is the difference in the amplitude between each
  20. : sample that is played. When you suddenly set the amplitude to zero (by
  21. : stopping the DMA or setting the volume to 0) you create a large
  22. : differential, as the amplitude suddenly cuts off. That's what causes the
  23. : click..
  24. :                                
  25. :                   ..           
  26. :                .''  ``.        
  27. :               .'      `.       
  28. :   .          .'        `.      .....
  29. :   `.        .'          `.     
  30. :    `.      ,'            `.    
  31. :      ``..''                ``.. 
  32. :                                 
  33. :                                ^ Sound turned off here
  34.  
  35. Hmm not much you can do about that I guess.. I tried fading out the 
  36. sound, as per an email suggestion, but it still had the click. It turned 
  37. out I was screwing something up when starting the next sound.. :)
  38. So it works now, but it's a shame you can't stop the sound without fading
  39. it out (however quickly the fade is done)
  40.  
  41. Troy.
  42.  
  43.