Vurv78 / WebAudio

A safe, efficient and powerful replacement for Streamcore that adds playing & manipulating URL streams through IGmodAudioChannel/BASS
https://steamcommunity.com/sharedfiles/filedetails/?id=2466875474
MIT License
18 stars 3 forks source link

Getter functions #8

Closed Vurv78 closed 3 years ago

Vurv78 commented 3 years ago

Add functions to get information about a stream / IGmodAudioChannel object. For now only gonna support stuff like GetTagsHTTP which are constant throughout the stream, but I'm also thinking of ways to implement FFT and GetState

Stuff to Add:

Not guaranteed to add:

Vurv78 commented 3 years ago

Adding getLength, getFileName and getTime right now. Will be pretty huge to be able to know the exact length of the sound & the position you're at in it.

Vurv78 commented 3 years ago

Will probably also make a serverside version of getState, will have CHANNEL_STOPPED CHANNEL_PLAYING CHANNEL_PAUSED but no CHANNEL_BUFFERING since we aren't dealing with the client. Will just see if it goes over the duration of the stream and force it to CHANNEL_STOPPED, etc

Vurv78 commented 3 years ago

Updated Stuff to Add: This is being updated with my local branch so you know how close I am to making a PR for this.

Easy:

Medium:

Requires Server Recreation (Hard)

Other functions like getAverageBitRate will be added later since they're much less useful