Facepunch / garrysmod-requests

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

Add the Tags plug-in for BASS to the game for tag reading #172

Open Grocel opened 10 years ago

Grocel commented 10 years ago

There was a function in gm_bass that allowed you to get the tag information out of the stream. Tags are information like author, album, song title and genre of a song. It even works on streams if the station is sending the information.

gm_bass implemented it like that: http://pastebin.com/eaHgGKtZ

The name of the function should be: string = IGModAudioChannel:GetTages(string)

You find the tags library for windows, Mac OS and Linux at http://www.un4seen.com/bass.html It's at the bottom of the "More add-ons" section.

How the Tags can be formated is written in the shipped readme file or here: http://pastebin.com/TjMMxmiF

robotboy655 commented 10 years ago

Does this even work? The last time I tried to use this with gm_bass, it didn't work.

Grocel commented 10 years ago

Yes it does, I just disabled it because, it used GMod's BASS and it would have required to ship the tags.dll with the module, which I wanted to avoid since bass.dll was shipped with GMod.

robotboy655 commented 10 years ago

I never used yours gm_bass, I tried using the old one way back in GMod 12 times, and tags.dll wan't working. I guess it got fixed since then.

Grocel commented 10 years ago

Back when I used the original one It worked too. Sometimes the the stream isn't sending the tags immediately. So rescanning might help.

Also there is another tags thing winch is already included in BASS, but it's a way more complex and less user friendly I think: http://www.un4seen.com/doc/#bass/BASS_ChannelGetTags.html In gm_bass it was represented as channel:GetRawTag(number).

Grocel commented 10 years ago

Are we going to see these binding in GMod soon?

robotboy655 commented 10 years ago

Please stop bumping.