public BASS_FILEPROCS(FileCloseProc close, FileLenProc length, FileReadProc read, FileSeekProc seek) { this.close = Marshal.GetFunctionPointerForDelegate(close); this.length = Marshal.GetFunctionPointerForDelegate(length); this.read = Marshal.GetFunctionPointerForDelegate(read); this.seek = Marshal.GetFunctionPointerForDelegate(seek); }
/// <summary> /// Initializes a new instance of the <see cref="BASSSongInstanceManager"/> class. /// </summary> /// <param name="file">The name of the file that contains the song data.</param> public BASSSongInstanceManager(String file) { this.file = file; this.fnClose = StreamClose; this.fnLength = StreamLength; this.fnRead = StreamRead; this.fnSeek = StreamSeek; }