internal AudioStream open(int samplerate, AudioFormat format, ChannelsLayout channelslayout, AudioStream.FrameReadyFunction frameready) { this._framedelegate = new AudioStream.FrameReadyFunction(frameready); var error = new StringBuilder(1024); var audstream = Imports._player_openaudio(Player._player, info.ind, samplerate, format, channelslayout, Marshal.GetFunctionPointerForDelegate(frameready), error); BBRException.CheckError(error, $"open_audio"); return(new AudioStream(this, audstream)); }
internal VideoStream open(FrameReadyFunction frameready) { this._framedelegate = new VideoStream.FrameReadyFunction(frameready); var error = new StringBuilder(1024); var vidstream = Imports._player_openvideo(Player._player, info.ind, Marshal.GetFunctionPointerForDelegate(this._framedelegate), error); BBRException.CheckError(error, $"open_video"); return(new VideoStream(this, vidstream)); }