AlvaroFranco / AFSoundManager

iOS audio playing (both local and streaming) and recording made easy
MIT License
807 stars 131 forks source link

How to switch between headphone and speaker while playing? #62

Open clarifysky opened 8 years ago

clarifysky commented 8 years ago

As the title described, I'd like to let people can switch the output device between headphone and speaker while the sound is playing. For example, when people make his/her ear close to the phone, it turns to use headphone to play the sound, otherwise use speaker to play the sound. How to implement this use AFSoundManager?