/// <summary> /// Creates a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plugin supported file via user callback functions. /// </summary> /// <param name="system">File system to use, one of the following. </param> /// <param name="flags">A combination of these flags.</param> /// <param name="procs">The user defined file functions. </param> /// <param name="user">User instance data to pass to the callback functions. </param> /// <returns>If successful, the new stream's handle is returned, else throw WavException.</returns> public static int StreamCreateFileUser(BASSStreamSystem system, BASSFlag flags, BASS_FILEPROCS procs, IntPtr user) { int handle = NativeMethods.BASS_StreamCreateFileUser(system, flags, procs, user); if (handle == 0) { throw new WavException(BassErrorCode.GetErrorInfo()); } return(handle); }
public static extern int BASS_StreamCreateFileUser(BASSStreamSystem system, BASSFlag flags, BASS_FILEPROCS procs, IntPtr user);
public static extern int BASS_MP4_StreamCreateFileUser(BASSStreamSystem system, BASSFlag flags, BASS_FILEPROCS procs, IntPtr user);