FAudioGMS/gamemaker/objects/AUDIO/Create_0.gml

16 lines
563 B
Plaintext
Raw Normal View History

2022-01-08 11:43:38 +00:00
/// @description Initialize audio.
/* First initialize the system: */
2021-10-29 00:26:01 +00:00
var spatialDistanceScale = 50; // makes "3D" audio louder
2022-01-08 11:43:38 +00:00
var timestep = game_get_speed(gamespeed_microseconds) / 1000000; // default, autodetect from GM timestep.
FAudioGMS_Init(spatialDistanceScale, timestep);
2021-10-29 00:26:01 +00:00
/* Init Effects Chains Here */
2022-01-08 11:43:38 +00:00
effChain = new EffectChain();
effChain.AddDefaultReverb();
2021-10-29 00:26:01 +00:00
/* Load Audio Assets Here */
2022-01-08 11:43:38 +00:00
// snd = LoadStaticSound("go-go-go-tigerblood.wav");
// sndInst = snd.Play();
// sndInst.SetEffectChain(effChain, 1); // apply default reverb to the instance.