Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillon From: dillon@HERMES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: 131072 is the Sound Barrier? Message-ID: <8905122052.AA17303@hermes.Berkeley.EDU> Date: 12 May 89 20:52:18 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 20 :In article <8905100534.AA09678@jade.berkeley.edu> writes: :>Why is the maximum length of a sound 131072??? (as stated in the :>AutoDocs for the Audio Device with CMD_WRITE). If I had 1Meg of :>chip memory (well I can dream can't I), I might want to play a :>sound that is 1Meg long (or there abouts). : :You can play samples that are longer than 131072 bytes long by queuing :up multiple requests to the audio device. Use a Wait() GetMsg() loop :to keep the sample running smoothly. You can do this with just two :IOAudio structures by alternating them. :-- : Dan Baker, CATS It works very very well. One can even do FSK by queuing thousands of relatively small (couple ms / per) requests. The only problem is that you CANNOT use WaitIO() due to a bug in the audio.device ... use WaitPort() / GetMsg() instead. -Matt