If I change the volume property of a soundmanager2 sound object in ios-safari the soundmanager2 volume property changes and doesn't account for the fact, that the HTML5 audio object's volume property always stays 1.
So my solution is the following:
$(function(){
soundManager.onready(function(){
voltest = soundManager.createSound({
id: "testid",
url: some_valid_audio_url,
autoLoad: false,
});
if (voltest.isHTML5) {
var html5audio = new Audio();
html5audio.volume = 0.34;
if (html5audio.volume == 0.34) {
$("html").addClass("volchange");
}
} else {
$("html").addClass("volchange");
}
voltest.destruct();
});
});
I like my solution, and thought it might be useful to others...