Garry's Mod

Garry's Mod

3D Stream Radio
此主题已被锁定
Big Bread 2014 年 9 月 23 日 上午 6:50
How do I put songs in?
I want to put a song in. Can anybody help me?
最后由 Grocel 编辑于; 2014 年 10 月 19 日 上午 3:21
< >
正在显示第 1 - 15 条,共 55 条留言
Grocel  [开发者] 2014 年 9 月 24 日 上午 11:59 
Use the playlist editor, if you are admin. You can find urls there, but not limited to: http://www.shoutcast.com/
Sylva 2014 年 10 月 10 日 下午 5:04 
playlist editor?
Grocel  [开发者] 2014 年 10 月 11 日 上午 3:52 
You find it in the settings. They are in the utilities tab. You can alternatively enter "cl_streamradio_playlisteditor" in the console.
Sylva 2014 年 10 月 11 日 下午 8:17 
引用自 Grocel
You find it in the settings. They are in the utilities tab. You can alternatively enter "cl_streamradio_playlisteditor" in the console.
thanks... btw im trying to find out how to make a playlist and the editor wont work... is it possible for me to make my own playlist manually as in like youtube links in the form of... "[playlist]
NumberOfEntries=1
File1=http://pub1.di.fm:80/di_techno
Title1=Techno
Length1=-1
Version=2"
Grocel  [开发者] 2014 年 10 月 11 日 下午 8:42 
Are you admin or in single player? This is required for the use of the playlist editor or for adding new playlists in general. You can do playlist manually, but this require the access to the server files if you are in multiplayer too.

Also I recommend you to read the description.

If you are in single player or an admin then you should write an proper error report. I like to quote myself here: "If you get a error message and you don't know what to do, you should always include it in your question."
Sharsharkan 2014 年 10 月 22 日 上午 1:16 
How to add my own mp3s?
I'm terrible with notepad and my playlists with mp3s on my own computer won't work. I'm sorry if this isnt a very descriptive discussion but it's early in the morning and im getting a bit tired.
Grocel  [开发者] 2014 年 10 月 30 日 上午 6:29 
Use the playlist editor. You will have to upload the music files somewhere and enter the URL in the or put them in the sound folder of GMod and put in the relative path. Others will only hear it if it was uploaded.
最后由 Grocel 编辑于; 2014 年 10 月 30 日 下午 1:36
Sharsharkan 2014 年 10 月 30 日 上午 11:55 
引用自 Grocel
Use the playlist editor. You will have to upload the music files somewhere and enter the URL in the or put them in the sound folder of GMod and put in the relative URL. Others will only hear it if it was uploaded.
Thank you!
Feldriar 2014 年 12 月 3 日 上午 12:37 
Hi,

I am new to all the admin stuff, I recently added a server, I'm the owner there. And I have installed this addon. I tried to add a playlist, and as said above: i went to Shoutcast, and found my favourity radio station there, I pressed the download button and clicked on M3U. Another tab opened in my browser and copied that link, which is: http://yp.shoutcast.com/sbin/tunein-station.m3u?id=32762
I saved it in the playlist editor, but still, the radio doesn't recognise the file.
I went back to the editor and saw that the file was deleted or some sort, I am really confused and I really do want to play the radio. How do I fix this?
最后由 Feldriar 编辑于; 2014 年 12 月 3 日 上午 12:39
Grocel  [开发者] 2014 年 12 月 5 日 上午 10:16 
I have tested the link and it works. You probably forgot to save the playlist. You press on "New Playlist" (that table with a green plus icon) enter the file name. After that you enter the URL in the then you give it a name on the right side of the gui and than you press on add. Then you need to save, so press on the disk button in the upper left corner.

The editor is a bit glitchy some times, I need to tweak a few things.
最后由 Grocel 编辑于; 2014 年 12 月 5 日 上午 10:19
Feldriar 2014 年 12 月 5 日 上午 10:57 
Many thanks for your reply, it was very helpful!
Polyzium 2014 年 12 月 25 日 下午 12:34 
does it support WAV? not only MP3s, you should also add OGG, FLAC, and uncommon file format DRO(DOSBox Raw OPL) that contains data written for OPL2/OPL3 FM chips used in 90s(DOS, yeah...)
Polyzium 2014 年 12 月 25 日 下午 12:36 
P.S. These chips are widely used by soundcard manufacturers, such as Creative with his Sound Blaster 16/AWE32. You can also steal OPL emulation code from DOSBox project to make your addon support DRO files.
Polyzium 2014 年 12 月 25 日 下午 1:06 
err... my song seem to be not readable to your addon(and wiremod). other programs plays this file fine, WTF?
Grocel  [开发者] 2014 年 12 月 25 日 下午 2:04 
You should know that this addon uses an API that is build into GMod, so we can use it via Lua, which is already supporting the most of these formats. Im not able to change nor to extend it with Lua. The API GMod uses is called BASS[www.un4seen.com]. Ask Garry/Facepunch or Un4seen to add your DOS file format.

This addon supports what the implementation of the API in GMod supports, nothing more, nothing less. It supports the most common file formats such as WAV, OGG, MP3, FLAC. WAV however can only be played if they don't loop by themselves in the game engine. As it seems BASS doesn't like the cues in them and will yield the error code -1.

Local files have to be given relative to the steam/steamapps/common/garrysmod/garrysmod/sound/ path. The file has to be in that folder or inside a subfolder of it. That's also a limit of the API implementation.
最后由 Grocel 编辑于; 2014 年 12 月 25 日 下午 2:11
< >
正在显示第 1 - 15 条,共 55 条留言
每页显示数: 1530 50