🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12630

Re: 131072 is the Sound Barrier?

#12630
From: Matt Dillon
Date: Fri, 12 May 1989 20:52
20 lines
1256 bytes
:In article <8905100534.AA09678@jade.berkeley.edu> <AXTBF%ALASKA.BITNET@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
Technical Details
Message-ID: <8905122052.AA17303@hermes.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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