Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

Partial serverside BASS support #439

Open wyozi opened 9 years ago

wyozi commented 9 years ago

To for example get duration of an mp3 or #431 if it gets implemented.

wyozi commented 9 years ago

If someone is in desperate need of these, I implemented both ID3 and mp3 duration parsers in pure lua

https://github.com/wyozi/gmod-medialib/blob/master/ext/id3parser.lua https://github.com/wyozi/gmod-medialib/blob/master/ext/mp3duration.lua

It is terribly inefficient though, would still like a binding if possible.

Grocel commented 9 years ago

It would be also useful for getting the FFT spectrum server side.

And if https://github.com/Facepunch/garrysmod-requests/issues/172 is getting implemented, then you wouldn't have to deal with that mp3 tags trouble again: So far as I have tested it in the past, it supports every sound format that can hold tags.

In my experience (http://facepunch.com/showthread.php?t=1159184) BASS works just fine on shared use if you don't try to load it twice on listen servers or in single player. The single instance can be accessed from both sides easily.

thegrb93 commented 9 years ago

Would also be nice if it were possible to retrieve whether a .wav file should loop by default or not since some game sounds are loops.

Grocel commented 9 years ago

Yeah, unfortunately BASS (2.4.10) doesn't like those files and gives out an error -1. Also the looping information isn't saved as a tag. It is caused by named cues at the start and end of the file you add in with a sound editor.

Vurv78 commented 3 years ago

6 years later and just want to let everyone know this is still wanted, since right now I have to make a huge convoluted net system for fft and audio stream length, current playback time for my addon..