[futurebasic] Re: [FB] Replacement for FB's Sound statement?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2006 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Fri, 11 Aug 2006 18:45:10 -0700
On Aug 10, 2006, at 2:58 PM, John McKernon wrote:

> Does anyone know a workaround for this?

The FB Sound statement uses the sound manager 3.0 (toolbox calls like  
SndDisposeChannel and others  - see Tlbx Sounds.incl) which is  
supported by carbonlib 1.0 and OS X 10.0.  Some Quicktime calls  
replaced sound manager calls but I don't know what they are right of  
the top of my head.  There are some Quicktime music examples in the  
Examples folder on the CD. Also, in "Robert P's Favortie Examples/ 
Miscellaneous/Sounds Folder there is a "PlaySoundFileWithQuickTime"  
that might be worth a look. However, you have probably heard about  
all the new Apple technologies? (core foundation - aka CF and  
others). Well there is one named "Core Audio". http:// 
developer.apple.com/documentation/MusicAudio/Conceptual/ 
CoreAudioOverview/Introduction/chapter_1_section_1.html


There are several different header file interfaces provided by  
Apple.  The System Sound APIs documents in this technote:
http://developer.apple.com/technotes/tn2002/tn2102.html

might be helpful.  Please note this is all very superficial and  
forces you to do a lot of the dirty work that FB's SOUND statement  
now does for you. My own application uses the FB SOUND statement and  
I haven't heard of a problem yet and I know there are people running  
it under Rosetta on  OS X .  There are a few listers who have Intel  
macs and could test this quickly to find out if it is the SOUND  
statement failing or some other issue.  Maybe they will chime in. I'd  
test it for you but my dual G5 won't help.

Brian S.