Titanfall 2: Northstar
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
4 years ago
Downloads
1.1K
Size
606KB

kyurid

THIS IS A PRE-RELEASE VERSION pls wait for 1.13 or when plugins v2 is out

a plugin that gives the sqvm access to a high level api for audio

DOCS REAL?

any errors produced by io or rodio will raise errors that you will have to catch with try and catch

util funcs

KYPlaySoundFile

void function KYPlaySoundFile( string mod_name, string sound_name )

low overhead

just spawns a sound and plays it until it ends or when the game stops runnning

good for short sounds

KYPlaySoundFileTracked

void function KYPlaySoundFileTracked( string mod_name, string sound_name )

higher overhead, can also fill up the memory since sinks will only be cleaned on client destruction

KYGetSound

array<string> function KYGetSounds(string mod_name)

gets all the sounds from a folder

rodio sink api

for now only basic stuff ( I am too laszy to add more )

KYCreateSoundSink

string function KYCreateSoundSink()

creates a rodio sink and returns a id for it

KYAddSoundToSink

void function KYAddSoundToSink( string id, string mod_name, string sound_name )

appends a sound to the sink

KYSkipSinkSound

void function KYSkipSinkSound( string id )

skips the currently playing sound

KYSinkSetSpeed

void function KYSinkSetSpeed( string id, float speed )

speeds up the sounds >:3

normal speed is 1.0

KYDestroySink

void function KYDestroySink( string id )

destroys the sink which makes also makes the id invalid

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.