de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Reload sound files in runtime?
PostPosted: Wed Jul 15, 2020 3:15 pm 
Offline
Veteran
Is it possible to reload changed wave files in runtime?

I ask because a nice man helped me write a sound generator for SS.
But you make a sound file once and if it's overwriten SS plays the old from memory.


Top
 Profile Send private message 
 
 Re: Reload sound files in runtime?
PostPosted: Wed Jul 15, 2020 5:50 pm 
Offline
Veteran
User avatar
I use playBackgroundSound(null) to stop my current sound and then you can start a new one.
You can also play sounds on top of each other, and the playBackgroundSound(null) will stop them all.


Top
 Profile Send private message 
 
 Re: Reload sound files in runtime?
PostPosted: Thu Jul 16, 2020 4:22 am 
Offline
Addict
"I use playBackgroundSound(null) to stop my current sound and then you can start a new one.
You can also play sounds on top of each other, and the playBackgroundSound(null) will stop them all."

This doesn't answer the question. If the file is changed but the filename remains the same and you try to play the updated wav or mp3 audio file, it plays the old version of the file because SexScripts doesn't load the file each time it plays it. I've run into this with the script I'm trying to make too and have needed to restart my script from the start when I wanted to test small audio changes for a volume leveling. As a workaround since it's for dev, I've created a debug mode to jump where I was so I could make the comparison.

..so I'm curious about this too, although MissEshock2002 has a real reason for the functionality when for me it's just for minor development ease.


Top
 Profile Send private message 
 
 Re: Reload sound files in runtime?
PostPosted: Thu Jul 16, 2020 3:27 pm 
Offline
Veteran
That's not what I want, arthurb. But thank you for your help. :)

Thank you, Zap! <3
Code:
return "other_script"
works with saving vars first.
The "other_script" look like this:
Code:
return "first_script"


I'll make that with load the other script. Later I upload the tool I made.


Top
 Profile Send private message 
 
 Re: Reload sound files in runtime?
PostPosted: Wed Aug 12, 2020 8:57 pm 
Offline
Site Admin
User avatar
Perhaps SexScripts can be updated with a check on the file's timestamp.
For now, you should change the name of the file.


Top
 Profile Send private message 
 
 Re: Reload sound files in runtime?
PostPosted: Thu Aug 13, 2020 3:49 pm 
Offline
Veteran
I'll try the rename. Thanks!


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.