Difference between revisions of "TS3PR/SimIFace/Sims3.SimIFace/Audio"
From SimsWiki
< TS3PR | SimIFace | Sims3.SimIFace
(Gave Audio it's own page. Still need to add code block) |
Latest revision as of 12:03, 1 February 2021
Not to be confused with 'Sound' which can be found in the same namespace path. Audio takes some of the ScriptCore functions and makes them usable to eventually be used by other 'sound' classes. It also seems to come with some debug functions.
Used primarily by:
[edit] Code
STILL NEED TO PARSE CODE BLOCK HERE
Useful Debug functions that can be found inside this class:
public static uint StartSoundMP3(string name) { return gAudio.StartSoundMP3(name); }
Example usage:
//OnStartup() or inside Run() or anything that can fire it. Audio.StartSoundMP3("sound_name_a");
(NOTE: Do make sure to 'stopSound()' if you ever were to use this for non-debug reasons.)