Issue with mute() by Id
Hello,
In HTML header I have :
Then after I use the following code :
but it doesn't work...
if I put soundManager.mute('first_Sound'); it doesn't work too...
The only thing working is soundManager.mute(); but i don't want all sounds to be muted
Any ideas ?
Thx
In HTML header I have :
soundManager.onload = function() {
first_Sound = soundManager.createSound(
{
id : "first_Sound",
volume: 100,
url : "sounds/test1.mp3"
});
}
Then after I use the following code :
first_Sound.mute();
but it doesn't work...
if I put soundManager.mute('first_Sound'); it doesn't work too...
The only thing working is soundManager.mute(); but i don't want all sounds to be muted
Any ideas ?
Thx
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?This example works for me in the Firebug console, run after the page has loaded etc..
var s = soundManager.createSound({
id:'s',
url:'http://freshly-ground.com/data/audio/mpc/20060826%20-%20Armstrong.mp3'
});
s.mute();
s.play(); // sound starts loading/playing, but nothing is heard
You may have a scope issue as "first_Sound" is not explicitly declared as a global variable within soundManager.onload(). Perhaps try..
var first_Sound = null;
soundManager.onload = function() {
first_Sound = soundManager.createSound({
id : "first_Sound",
volume: 100,
url : "sounds/test1.mp3"
});
}
Now "first_Sound" is declared at the global level, and you can safely call first_Sound.mute() after SM2 has started up.
I’m confident
The company says
this solves the problem
Loading Profile...



EMPLOYEE