How to play audioClip ".wav" from a certain time?
For example, I want to play the music from minute 01:20?
Thanks!!
Need urgent help! How to play audioClip ".wav" from a certain time?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Need urgent help! How to play audioClip ".wav" from a certain time?
Hi royF,
welcome to the forum!
You will need to use a PLAYER object for this, the "play audioclip xxx" command does not support this.
1. Set the filename of the player object to your WAV file.
2. Then if you want to start the sound you need to forward to 1:20, maybe in a button or when- and wherever you start the sound:
Best
Klaus
P.S.
Personal note: A little "Hello" would not have hurt for the very first posting.
welcome to the forum!
You will need to use a PLAYER object for this, the "play audioclip xxx" command does not support this.
1. Set the filename of the player object to your WAV file.
2. Then if you want to start the sound you need to forward to 1:20, maybe in a button or when- and wherever you start the sound:
Code: Select all
...
## timescale = units per seconds in movie or sound:
put the timescale of player "your wav sound here" into tTScale
## Forward 80 seconds:
put round(80 * tTScale) into tCurrentTime
set the currenttime of player "your wav sound here" to tCurrentTime
start player "your wav sound here"
...
Klaus
P.S.
Personal note: A little "Hello" would not have hurt for the very first posting.