Can anyone help me on playing a file from a memorystream using FMOD or any other way?
So far i have this:
Variables
private FMOD.System _fmod = null;
private FMOD.Sound _sound = null;
private FMOD.Channel _channel = null;
Code
var file = File.ReadAllBytes("test.ogg");
//MessageBox.Show("Bytes from file: " + file.Length);
FMOD.Factory.System_Create(ref _fmod);
var result = _fmod.init(2, FMOD.INITFLAGS.NORMAL, (IntPtr)null);
if(result != FMOD.RESULT.OK) ShowError(result);
var info = new FMOD.CREATESOUNDEXINFO();
result = _fmod.createStream(file, MODE.CREATESTREAM, ref info, ref _sound);
if (result != RESULT.OK) ShowError(result);
Any help would be greatly appreciated