sound.PlayUrl() file formats on different play modes?!
2 replies, posted
Hello, i noticed that the play mode "mono" support more sound files as "3d" in sound.playurl function
Example:
This is a youtube video (finding the url to the mp4 video file (with downloadhelper), and put it into tinyurl, if this link do not work anymore (because of tokens an such stuff)) [url]http://XXXXXXX.com/o6s45yg[/url]
So this codes wors, and it plays the video (sound only) as i expected it:
sound.PlayURL("http://XXXXXXX.com/o6s45yg","mono",function(sc)
if sc then
sc:Play()
end
end)
but this code stops with Bass error 41 (unsupported file format)
sound.PlayURL("http://XXXXXXX.com/o6s45yg","3d",function(sc)
if sc then
sc:SetPos(LocalPlayer():GetPos())
sc:Play()
end
end)
Is this a bug?
Is this a problem with the sound library (bass lib) or gmod?
Will it be fixed someday?
btw, XXXXX is t i n y u r l , why will it be replaced with dots?
You have to link to a file that has a supported format. MP3/2/1, WAV, ACC, OGG are supported. Videos aren't supported.
i know, that was my question. why i am able to play mp4 video files (audio stream) in "Mono" mode, but not in 3d mode
Sorry, you need to Log In to post a reply to this thread.