On Saturday, April 17, 2004, at 05:11 PM, Robert Covington wrote: > > On Saturday, April 17, 2004, at 04:31 AM, Darron Forehand wrote: > >> Thanks Joe. I found and used "LMSound.Glbl" and "LMSound.Incl" by >> Lars Gafvert with Quixample in the FB3 Examples folder (within >> Edtris) and it is working without a hitch in Panther. :) Well, I did >> have to add a "gSoundOn$="Y"" to the "LMSound.Incl" after some >> hunting to see what was keeping it from playing, and I increased >> "_mySoundChannels = 6" to "_mySoundChannels = 20" in "LMSound.Glbl" >> since there are 12 different chime sounds and several might play at >> the same time. ;) >> >> Here's the source code if you want to check it out...I have to admit >> it sounds pretty soothing with the random "wind velocity". ;) It's >> not completely done, but workable for the moment. Will try to adjust >> the volume according to the amount of "wind" later--I wasn't able to >> vary the volume so far. >> >> www.etex.net/~glo/MomsChimesSource.sit >> >> Seems to be easy on the dual CPUs according to Activity Monity, and >> can be left on in the background while running other apps without >> much of a memory or CPU footprint. >> >> Thanks again for your help. >> >> Darron > > > Wow, that's encouraging (and thanks for posting your source). I am not > sure what caused my problems, if it was the stereo setting, or me > mucking up something elsewhere, but I am sure it's minor given the > results you all have reported, since I didn't change much at all with > the original includes...Might be my sound samples, something not cool > with them in OS X? Doubt that, but I'll give it a new look and report > back. > > r > c Arghs...I'm going to have to do a re-write of my app's sound portion using your routines and see where I'm blowing up things. I get a couple of sounds, it seems like the app quits at the end of one? rc Date/Time: 2004-04-18 17:18:39 -0400 OS Version: 10.2.8 (Build 6R73) Host: Robert-Covingtons-Computer.local. Command: FB_Temp PID: 716 Exception: EXC_BAD_INSTRUCTION (0x0002) Code[0]: 0x00000002Code[1]: 0x002c3960 Thread 0 Crashed: #0 0x002c3960 in 0x2c3960 #1 0x91791718 in ProcessCmd #2 0x91793f50 in ProcessNextCmd #3 0x91794a14 in SoundComplete #4 0x917949b8 in InvokeSoundParamUPP #5 0x01dad7fc in MixerDispatch #6 0x01dac98c in MixerDispatch #7 0x01db8c50 in HALHardwareDispatch #8 0x91791c98 in SoundComponentStopSource #9 0x91791734 in ProcessCmd #10 0x91791f08 in SndDoImmediate #11 0x002c3590 in 0x2c3590 #12 0x002c3cdc in 0x2c3cdc Thread 1: #0 0x90073ba8 in mach_msg_trap #1 0x90005ed0 in mach_msg #2 0x901489f0 in __CFRunLoopRun #3 0x90180f58 in CFRunLoopRunSpecific #4 0x94652f80 in HALRunLoop::OwnThread(void*) #5 0x946591e0 in CAPThread::Entry(CAPThread*) #6 0x90020c28 in _pthread_body Thread 2: #0 0x90034728 in semaphore_wait_trap #1 0x90009c18 in pthread_mutex_lock #2 0x01dc01fc in HALInputComponentDispatch #3 0x01daea7c in MixerDispatch #4 0x01dac900 in MixerDispatch #5 0x917911ac in SoundComponentGetSourceData #6 0x01dbb9d8 in HALHardwareDispatch #7 0x01dbb7f0 in HALHardwareDispatch #8 0x9464360c in IOADevice::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) #9 0x94643a60 in HPIOThread::PerformIO(AudioTimeStamp const&) #10 0x94642c14 in HPIOThread::WorkLoop() #11 0x9465919c in HPIOThread::ThreadEntry(HPIOThread*) #12 0x946591e0 in CAPThread::Entry(CAPThread*) #13 0x90020c28 in _pthread_body