title: Swift: How to stop scheduleBuffer completion handler being called when interrupted?
body: <p>I have a AVAudioPlayerNode that I'm scheduling a lot of buffers on using the following:</p>
  
  <pre><code>node.scheduleBuffer(buffer, at: nil, options: .interrupts, completionHandler: completeFunc)
  </code></pre>
  
  <p>But I'm having a bit of a problem. If I play another buffer interrupting the currently playing buffer, the completion handler for the buffer getting interrupted is still being called. I guess this makes sense, but I can't seem to find a way to check if the file actually COMPLETED playing or if it was interrupted. Is there a way I can do this?</p>
  
  <p>Any answers will help!</p>