You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, February 22nd 2011, 8:07pm

Sound regulation for differents mp3

Hello.





I would like to know how can i change the volume for differents mp3 wich are playing at the same time. (Not the initial volume). For example sound(1) and sound(2) are playing and when I click on a button the sound(1) volume must set to 0.1 but the sound(2) still sound with volume=1.





Regards.

2

Wednesday, February 23rd 2011, 10:24pm

Hi,

that's currently not possible, but it will in the next version (1.0.8.14),
then there will be sound[id] objects which allow changing the sound properties (like volume) dynamically,
e.g. then it will be possible to write codes like this:

Source code

1
set(sound[s1].volume, 0.1);
or:

Source code

1
tween(sound[s1].volume, 0.1);


best regards,
Klaus

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

3

Wednesday, February 23rd 2011, 10:43pm

Hi,

That's a good news *thumbup* !
It was a feature I've found missing. Thank's Klaus.

SAlut.

4

Thursday, February 24th 2011, 9:53am

when will it be possible

Hello.





I have to do a job and I need to know if I can include this option in the virtual tour. Then I would like to know if it is possible about the date in wich it would be possible.



Regards.

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

5

Thursday, February 24th 2011, 3:02pm

klaus just relesed a new beta version yesterday it might be included in there.

6

Thursday, February 24th 2011, 4:22pm

stop doesn´t work

Hello again.



I downloaded the last beta version. And I am trying this line:



onclick="stopsound(sound[1]);tween(sound[100].volume, 1);set(plugin[play-pause].alpha,0);set(plugin[play-pause].enabled,false);set(plugin[resume].alpha,0);set(plugin[resume].enabled,false);set(plugin[play].alpha,1);set(plugin[play].enabled,true);"



it makes all ok but sound 1 doesn´t stop playing. And if I try with this:



onclick="stopsound(1);tween(sound[100].volume, 1);set(plugin[play-pause].alpha,0);set(plugin[play-pause].enabled,false);set(plugin[resume].alpha,0);set(plugin[resume].enabled,false);set(plugin[play].alpha,1);set(plugin[play].enabled,true);"





it takes an error:



remove - unknown array item - 1







Regards.

7

Friday, February 25th 2011, 10:44pm

Hi,

here a pre-release of the 1.0.8.14 soundinterface plugin documenation:

http://krpano.com/plugins/soundinterface/#top

I hope it makes it more clear how to use the sound[name] objects,

when you play a sound then that sound will get a name,
and this name must used to when using the sound[name] objects,
NOTE - numbers are not allowed as names!

e.g.

Source code

1
2
3
4
5
playsound(snd1, file.mp3);
...
tween(sound[snd1].volume,0.5);
...
stopsound(snd1);


best regards,
Klaus

jpdeglet69

Intermediate

Posts: 215

Location: France

Occupation: VR Maker and Document Management Expert

  • Send private message

8

Saturday, April 30th 2011, 5:01am

Hi,

here a pre-release of the 1.0.8.14 soundinterface plugin documenation:

http://krpano.com/plugins/soundinterface/#top

I hope it makes it more clear how to use the sound[name] objects,

when you play a sound then that sound will get a name,
and this name must used to when using the sound[name] objects,
NOTE - numbers are not allowed as names!

e.g.

Source code

1
2
3
4
5
playsound(snd1, file.mp3);
...
tween(sound[snd1].volume,0.5);
...
stopsound(snd1);


best regards,
Klaus


Sound object is a very usefull enhancement ! *thumbsup*

I have implement it, to share a same sound with changing volume and polar coordinates between different panoramas.
Here a "caving" example

Nevertheless, it seems that, for a same and unique sound, sound[name].volume and plugin[soundinterface].volume doesn't provide the same effect.
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

This post has been edited 2 times, last edit by "jpdeglet69" (Apr 30th 2011, 5:52am)