🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Simple Audio question

#7463
From: Joseph Peck
Date: Fri, 14 Dec 1990 17:10
25 lines
1269 bytes
Hello all.  I have a quick question on how to correctly select an 
audio channel for playing a sound.

Currently everything works; i.e. I allocate all 4 channels, and can 
play a sound on any given channel.  However, I get warnings when I
compile my program with lattice C.  I select the channel with:

AIOptr->ioa_Request.io_Unit = #;

where # is either 1,2,3 or 4.

I am assuming that I should be putting something other than just simple
constants here, but the RKM's don't cover this too well. (I am sure that
someone will probably disagree with me, but I really don't see it)

The better part is that the RKM's refer to io_Unit as a bit field, while
the header files seem to think that it is a pointer to a structure.
Maybe I am just too tired to read it correctly.....

So, can anyone give me a hand?

Thanks,
Joe Peck
peck@ral.rpi.edu
Technical Details
Message-ID: <8GG^X6$@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!peck

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!peck
From: peck@ral.rpi.edu (Joseph Peck)
Newsgroups: comp.sys.amiga.tech
Subject: Simple Audio question
Message-ID: <8GG^X6$@rpi.edu>
Date: 14 Dec 90 17:10:50 GMT
Sender: Joseph Peck
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 25
Nntp-Posting-Host: ral.rpi.edu