This code fixed it:
recreateSoundManager = ->
sm2 = window.soundManager
if sm2?.ok()
sm2 = window.soundManager = new SoundManager()
sm2
Call this on turbolinks page load before the setup of soundmanager2. Then you can either use the return value or access normally from window.soundManager
.
Example with jquery.turbolinks:
jQuery ->
soundManager = recreateSoundManager()
soundManager.setup url: '/'