Hi Niko,
A few things I notice in your sample project:
1) the play/stop will never work -> the hotspot you are using to stop/play is in view and as a result when the sound is stopped, it will get resumed immediately (because in the onviewchange() will check if hte hotspot is visible and if so, will resume play)
I would suggest to put the play/stop in a seperate hotspot than the one you need to play the audio from (so one hotspot that is the start/stop button and another hotspot that is the source for the audio).
2) i see in your tour you have many hotspots. and in the code you have:
for(set(i,0), i LT hotspot.count, inc(i),
So every time you drag your screen around, it will check the position of ALL hotspots (not only the hotspot where the sound is coming from) and will then pause/resume the sound multiple times (as many times as you have hotspots in your scene)
I would suggest to not check ALL the hotspots, but only the hotspot where the audio needs to be playing.
3) I ran your sample project, and even with only 1 hotspot in the scene, I hear the audio play multiple times when i turn around... so weird...
As a test, i added "<view hlookat="180"></view>" and then no double audio was present. So maybe it is a timing issue (sound resuming while not yet properly initialized/loaded).
I need to do some more testing on why that could be the case... coming back!