alexbw / novocaine

Painless high-performance audio on iOS and Mac OS X
http://alexbw.github.com/novocaine/
MIT License
2.23k stars 273 forks source link

Problem with volume after use Novocaine #110

Open douglasjunior opened 9 years ago

douglasjunior commented 9 years ago

I wonder if it is necessary to destroy the "AudioManager" after using it. For, whenever I use it, the device volume crashes.

The "side buttons" volume does not work, and if I play a sound using "AudioServicesPlaySystemSound" the volume is low.

I am using the audio capture, something like:

Novocaine *audioManager = [Novocaine audioManager];
[audioManager setInputBlock:^(float *newAudio, UInt32 numSamples, UInt32 numChannels) {
    // capture here
}];
[audioManager play];

I need to destroy destroy the "AudioManager" after closing the "ViewController"?

glacialspring commented 9 years ago

I also had this volume problem, and discovered that setting the forceOutputToSpeaker property on iOS to true solved it.