0

I initialize audio session AudioSessionInitialize(NULL, NULL, rioInterruptionListener, self) with rioInterruptionListener. And I want to change interruption listener.

If I use AudioSessionInitialize(NULL, NULL, anotherInteruptionListener, self), it returns error. So, I think, I need to destruct audio session. And then initialize it again.

But how to implement this? How can I set another interruption listener or deinitiolize audio session?

Inspiration
  • 65
  • 1
  • 8

1 Answers1

1

You could simply put a conditional statement in your first interrupt listener to call the second interrupt listener when you want to change handlers.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153