コード例 #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));
 }
コード例 #2
0
 /// <summary>
 ///     Create a sample stream from a WMA file via user callback functions.
 /// </summary>
 /// <param name="handlers">The user defined file functions. </param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 /// <param name="user">User instance data to pass to the callback functions. </param>
 public WmaStream(FileHandlers handlers, WmaStreamCreateConfig configs,
                  StreamFileSystemType systemType, IntPtr user)
 {
     Handle =
         WmaModule.WmaStreamCreateFileUserFunction.CheckResult(
             WmaModule.WmaStreamCreateFileUserFunction.Delegate(systemType, configs,
                                                                ref handlers, user));
 }
コード例 #3
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)
 {
 }
コード例 #4
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)
 {
 }
コード例 #5
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)
 {
 }
コード例 #6
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)
 {
 }
コード例 #7
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));
 }
コード例 #8
0
 /// <summary>
 ///     Create a sample stream from a WMA .Net stream.
 /// </summary>
 /// <param name="stream">The .Net stream.</param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public WmaStream(Stream stream, WmaStreamCreateConfig configs,
                  StreamFileSystemType systemType) : this(stream.AsBassStream(), configs, systemType)
 {
 }
コード例 #9
0
 /// <summary>
 ///     Create a sample stream from a WMA Bass stream.
 /// </summary>
 /// <param name="bassStream">The Bass stream.</param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public WmaStream(BassStream bassStream, WmaStreamCreateConfig configs,
                  StreamFileSystemType systemType) : this(bassStream.StreamHandlers, configs, systemType, IntPtr.Zero)
 {
 }
コード例 #10
0
ファイル: WmaStream.cs プロジェクト: higankanshi/xZune.Bass
 /// <summary>
 ///     Create a sample stream from a WMA .Net stream.
 /// </summary>
 /// <param name="stream">The .Net stream.</param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public WmaStream(Stream stream, WmaStreamCreateConfig configs,
     StreamFileSystemType systemType) : this(stream.AsBassStream(), configs, systemType)
 {
 }
コード例 #11
0
ファイル: WmaStream.cs プロジェクト: higankanshi/xZune.Bass
 /// <summary>
 ///     Create a sample stream from a WMA Bass stream.
 /// </summary>
 /// <param name="bassStream">The Bass stream.</param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 public WmaStream(BassStream bassStream, WmaStreamCreateConfig configs,
     StreamFileSystemType systemType) : this(bassStream.StreamHandlers, configs, systemType, IntPtr.Zero)
 {
 }
コード例 #12
0
ファイル: WmaStream.cs プロジェクト: higankanshi/xZune.Bass
 /// <summary>
 ///     Create a sample stream from a WMA file via user callback functions.
 /// </summary>
 /// <param name="handlers">The user defined file functions. </param>
 /// <param name="configs">Configure of <see cref="WmaStream" />.</param>
 /// <param name="systemType">File system to use.</param>
 /// <param name="user">User instance data to pass to the callback functions. </param>
 public WmaStream(FileHandlers handlers, WmaStreamCreateConfig configs,
     StreamFileSystemType systemType, IntPtr user)
 {
     Handle =
         WmaModule.WmaStreamCreateFileUserFunction.CheckResult(
             WmaModule.WmaStreamCreateFileUserFunction.Delegate(systemType, configs,
                 ref handlers, user));
 }