C Cor Active Member Licensed User Longtime User Apr 28, 2011 #1 Don't want streaming because sound file is loaded from protected site gives setdatasource error when running on device File.DirDefaultExternal is ok File.DirInternal error Is it possible to play from memory without saving to file first Code: 'save to file If TaskId = RequestId Then 'Fetch the main page Response.GetAsynchronously("MainResponse",File.OpenOutput(File.DirDefaultExternal, "lick.ogg", False), True, RequestId) Return End If Code: mp.Load(File.DirInternal,"lick.ogg") 'error
Don't want streaming because sound file is loaded from protected site gives setdatasource error when running on device File.DirDefaultExternal is ok File.DirInternal error Is it possible to play from memory without saving to file first Code: 'save to file If TaskId = RequestId Then 'Fetch the main page Response.GetAsynchronously("MainResponse",File.OpenOutput(File.DirDefaultExternal, "lick.ogg", False), True, RequestId) Return End If Code: mp.Load(File.DirInternal,"lick.ogg") 'error
Erel B4X founder Staff member Licensed User Longtime User Apr 29, 2011 #2 You need to save the file first. However there shouldn't be any error. Can you post your complete code? Upvote 0
You need to save the file first. However there shouldn't be any error. Can you post your complete code?