stop()
Clears all of the node’s events you schedule and stops playback.
Declaration
func stop()Discussion
Clears all events you schedule, including any events in the middle of playing. It resets the node’s sample time to 0, and doesn’t proceed until the node starts again through play() or play(at:).
Pausing or stopping all of the players you connect to an engine doesn’t pause or stop the engine or the underlying hardware. You must explicitly pause or stop the engine for the hardware to stop. When your app doesn’t need to play audio, pause or stop the engine to minimize power consumption.