cinder/Cinder — pull request #149 by admsyn (2012-02-20 17:55:01+00:00)
Title: Fix for Audio Input crashes (osx)

While using an instance of ci::audio::Input, I was experiencing fairly frequent crashes. The same issue seems to be experienced by some other users as documented in the forums here:

http://forum.libcinder.org/topic/audio-input-crash
http://forum.libcinder.org/topic/audio-input-giving-exc-bad-access-errors
http://forum.libcinder.org/topic/audio-input-start-up-issues

Doing a test with the AudioInputSample, I experienced crashes on startup or shutdown 24/50 times I ran the application. I got similar results with the following bare-bones application:

```C++
#include "cinder/app/AppBasic.h"
#include "cinder/audio/Input.h"

class CinderAudioTestApp : public ci::app::AppBasic {
void setup();
ci::audio::Input input;
};

void CinderAudioTestApp::setup(){
input.start();
}

CINDER_APP_BASIC( CinderAudioTestApp, ci::app::RendererGl )
```

After this fix, I was able to run the AudioInputSample 50/50 times without crashes.

My computer is a Mid-2009 macbook pro running OSX 10.7.3 and XCode 4.2.1.