NathanWalker / ShoutOutPlay

The mobile app that allows you to create and record personal dedications using your favorite music playlists for corporate events, parties, weddings and get togethers.
https://shoutoutplay.com
30 stars 7 forks source link

Record view: playback of shoutout doesn't play back on device (works in simulator) #16

Closed NathanWalker closed 8 years ago

NathanWalker commented 8 years ago

When testing out the app, if you record a ShoutOut and hit the play button to play it back it won't play back. Have no fear, it's there and you can save it to a track and when you go to Playlists to play the track with the shoutout on it, you will hear it mixed in.

The playback of the shoutout is a device only issue as it works in the simulator.

/cc @NathanaelA

NathanWalker commented 8 years ago

This is fixed on latest dev now... was related to fact that ezaudio plugin needed to adjust the AVAudioSession category when going back/forth between recording and playback. Worth noting that this setting has no effect on the simulator (works regardless there everytime) but on device, this is very important:

// when switching to playback mode:
this._playbackSession.setCategoryError(AVAudioSessionCategoryPlayback, errorRef);
// when switching to record mode:
this._recordingSession.setCategoryError(AVAudioSessionCategoryPlayAndRecord, errorRef);