title: Do I have to reset Audio Session Properties after interruption?
body: <p>I am implementing a C listener to Audio Session Interruption. When it is called for interruption, I would deactivate my audio session. Then when my app resumes, I would activate the audio session again. I have set a number of properties and category for my audio session, do I have to reset everything after re-activation? </p>
  
  <p>Thanks in advance. </p>
  
  <p>Some code for reference: </p>
  
  <p>Initialization, setting category: </p>
  
  <pre><code>OSStatus error = AudioSessionInitialize(NULL, NULL, interuptListenerCallBack, (__bridge void *)(self));
  UInt32 category = kAudioSessionCategory_PlayAndRecord;
  error = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &amp;category);
  if (error) printf("couldn't set audio category!");
  //use speaker as default
  UInt32 doChangeDefaultOutput = 1;
  AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryDefaultToSpeaker, sizeof(doChangeDefaultOutput), &amp;doChangeDefaultOutput);
  //allow bluethoothInput 
  UInt32 allowBluetoothInput = 1;
  AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, sizeof(allowBluetoothInput), &amp;allowBluetoothInput);
  </code></pre>
  
  <p>The interuptListenerCallBack is where I deactivate and reactive the Audio Session because of the interruption, using </p>
  
  <pre><code> OSStatus error = AudioSessionSetActive(false);
   if (error) printf("couldn't deactivate audio session!");
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>  OSStatus error = AudioSessionSetActive(true);
    if (error) printf("AudioSessionSetActive (true) failed");
  </code></pre>