apraka16 / iOSAR

AR Project - iOS (Swift)
7 stars 3 forks source link

Issue with Sounds/ Speech. At one time, only one sound/ speech should be played. #10

Closed apraka16 closed 6 years ago

apraka16 commented 6 years ago

On TapGesture, Sound (swoosh or jump) should play completely and only then Speech should play out.

Something to do with:

func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) {
        <#code#>
    }

AVAudioPlayerDelegate to be implemented. More importantly, sounds should be synched, so that one is interrupted when other starts to play.

apraka16 commented 6 years ago

Updated the issue to make it overarching.

apraka16 commented 6 years ago

Implemented AVSpeechSynthesizer.isSpeaking at select places to make sure voiceover is interrupted when required to continue with next statement.