Beispiel #1
0
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file via user callback functions.
 /// </summary>
 /// <param name="handlers">The user defined file functions. </param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 /// <param name="user">User instance data to pass to the callback functions. </param>
 public AudioFileStream(FileHandlers handlers, StreamCreateFileUserConfig configs,
                        StreamFileSystemType systemType, IntPtr user)
 {
     Handle =
         AudioStreamModule.StreamCreateFileUserFunction.CheckResult(
             AudioStreamModule.StreamCreateFileUserFunction.Delegate(systemType, configs,
                                                                     ref handlers, user));
 }
Beispiel #2
0
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported .Net stream.
 /// </summary>
 /// <param name="stream">The .Net stream.</param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public AudioFileStream(Stream stream, StreamCreateFileUserConfig configs,
                        StreamFileSystemType systemType) : this(stream.AsBassStream(), configs, systemType)
 {
 }
Beispiel #3
0
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported Bass stream.
 /// </summary>
 /// <param name="bassStream">The Bass stream.</param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public AudioFileStream(BassStream bassStream, StreamCreateFileUserConfig configs,
                        StreamFileSystemType systemType) : this(bassStream.StreamHandlers, configs, systemType, IntPtr.Zero)
 {
 }
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported .Net stream.
 /// </summary>
 /// <param name="stream">The .Net stream.</param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public AudioFileStream(Stream stream, StreamCreateFileUserConfig configs,
     StreamFileSystemType systemType) : this(stream.AsBassStream(), configs, systemType)
 {
 }
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported Bass stream.
 /// </summary>
 /// <param name="bassStream">The Bass stream.</param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public AudioFileStream(BassStream bassStream, StreamCreateFileUserConfig configs,
     StreamFileSystemType systemType) : this(bassStream.StreamHandlers, configs, systemType, IntPtr.Zero)
 {
 }
 /// <summary>
 ///     Create a sample stream from an MP3, MP2, MP1, OGG, WAV, AIFF or plug-in supported file via user callback functions.
 /// </summary>
 /// <param name="handlers">The user defined file functions. </param>
 /// <param name="configs">Configure of <see cref="AudioFileStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 /// <param name="user">User instance data to pass to the callback functions. </param>
 public AudioFileStream(FileHandlers handlers, StreamCreateFileUserConfig configs,
     StreamFileSystemType systemType, IntPtr user)
 {
     Handle =
         AudioStreamModule.StreamCreateFileUserFunction.CheckResult(
             AudioStreamModule.StreamCreateFileUserFunction.Delegate(systemType, configs,
                 ref handlers, user));
 }