Re: AVAudioSession or equivalent on Mac OSX?
Re: AVAudioSession or equivalent on Mac OSX?
- Subject: Re: AVAudioSession or equivalent on Mac OSX?
- From: Bob Sabiston <email@hidden>
- Date: Wed, 19 Dec 2012 10:22:59 -0600
Hello again,
Well, amazingly I was able to run the exact same code on iOS and Mac and it works. I just had to change my explicit SInt16 arguments to AudioSampleType. I was thinking that the actual values I put into the buffers would have to change depending on whether they were shorts or floats, but is that not the case?
Or maybe it is, because there is one big problem. On the mac, the sound is excruciatingly loud. It does not seem to pay any attention to the volume setting in the menu bar, which I wouldn't have thought possible for an app to override. If I actually put the slider at 0, then it's true that the sound it mute, but at one notch up it is ear-splittingly loud, seemingly as much as at full volume.
So is this something I need to do differently regarding the audio output unit on mac, or does it have to do with my samples? Like, instead of ranging from +/- 32768, are they supposed to just range from +/-1? If that were the case then I would think the sound would just be garbage. It's not, it sounds right, just super loud.
Thanks for any suggestions,
Bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden