1

After I play an AVAudioPlayerNode that I've attached to my engine, I detach it (to keep CPU usage down). However, when I reattach that AVAudioPlayerNode to the engine again and attempt to play it (while it is still playing from before), I get a crash with the error:

'required condition is false: !nodeimpl->HasEngineImpl()'

I am having trouble understanding what this is telling me.

Note: crash only occurs when I attempt to play the AVAudiPlayerNode again while the previous playing of the sound is still happening (for example, I tap the button that produces the same sound via the same AVAudioPlayerNode twice in a row shortly after one another).

If I wait for the previous playing to finish, it will not crash.

vikzilla
  • 3,998
  • 6
  • 36
  • 57
  • Oh boy. Me again. :( I guess what I would suggest is that you just make a new node configured like the old node. I see no merit in hanging on to the old node; that gains you nothing, does it? – matt Feb 21 '16 at 00:21
  • Yeah good call: I'm hanging on to the original node but eventually my CPU overloads and the sounds goes out on iPhone 4s :/ – vikzilla Feb 21 '16 at 00:31

0 Answers0