stop()
Stops the audio engine and releases any previously prepared resources.
Declaration
func stop()Discussion
This method stops the audio engine and the audio hardware, and releases any allocated resources for the prepare() method. When your app doesn’t need to play audio, consider pausing or stopping the engine to minimize power consumption.