• sound.PlayURL noblock flag broken?
    2 replies, posted
I've just been experimenting with PlayURL and whilst I've been able to get the sound to play just fine, getting the noplay and 3d flags to work, for some reason the noblock flag seems to be broken. error: Cannot use SetTime on a block streamed audio channel. Use the 'noblock' flag when creating the channel to disable block streaming. To the greatest extent of my knowledge (provided a valid link is entered), this code should check out (according to: http://wiki.garrysmod.com/page/sound/PlayURL): sound.PlayURL("SONG URL", "noblock", function(channel) channel:SetTime(5) timer.Simple(15, function() channel:Remove() end) end) Any help would be much appreciated, I've been staring at this thing for hours and can't figure out what's wrong.
local time = 1 // try 1 and 10 sound.PlayURL("https://svyanov.com/music/tick.mp3", "noblock", function(channel) channel:SetTime(time) end) I do not know what is not working for you, but I checked that everything works as it should
Tested that code and whilst it doesn't error, it doesn't appear to function either. I've tried a fresh server installation and nothing has changed (thought it might be a dll issue)
Sorry, you need to Log In to post a reply to this thread.