Example #1
0
 /// <summary>
 /// Creates a Dummy or Push stream.
 /// </summary>
 /// <param name="Frequency">The default sample rate. The sample rate can be changed using <see cref="ChannelSetAttribute(int, ChannelAttribute, float)" />.</param>
 /// <param name="Channels">The number of channels... 1 = mono, 2 = stereo, 4 = quadraphonic, 6 = 5.1, 8 = 7.1. More than stereo requires WDM drivers, and the SPEAKER flags are ignored.</param>
 /// <param name="Flags">A combination of <see cref="BassFlags"/>.</param>
 /// <param name="ProcedureType">The type of stream.</param>
 /// <returns>If successful, the new stream's handle is returned, else 0 is returned. Use <see cref="LastError" /> to get the error code.</returns>
 /// <remarks>
 /// A dummy stream doesn't have any sample data of its own, but a decoding dummy stream (with <see cref="BassFlags.Decode"/> flag) can be used to apply DSP/FX processing to any sample data,
 /// by setting DSP/FX on the stream and feeding the data through <see cref="ChannelGetData(int,IntPtr,int)" />.
 /// <para>The dummy stream should have the same sample format as the data being fed through it.</para>
 /// </remarks>
 /// <exception cref="Errors.Init"><see cref="Init" /> has not been successfully called.</exception>
 /// <exception cref="Errors.NotAvailable">Only decoding channels (<see cref="BassFlags.Decode"/>) are allowed when using the <see cref="NoSoundDevice"/> device. The <see cref="BassFlags.AutoFree"/> flag is also unavailable to decoding channels.</exception>
 /// <exception cref="Errors.SampleFormat">The sample format is not supported by the device/drivers. If the stream is more than stereo or the <see cref="BassFlags.Float"/> flag is used, it could be that they are not supported.</exception>
 /// <exception cref="Errors.Speaker">The specified Speaker flags are invalid. The device/drivers do not support them, they are attempting to assign a stereo stream to a mono speaker or 3D functionality is enabled.</exception>
 /// <exception cref="Errors.Memory">There is insufficient memory.</exception>
 /// <exception cref="Errors.No3D">Could not initialize 3D support.</exception>
 /// <exception cref="Errors.Unknown">Some other mystery problem!</exception>
 public static int CreateStream(int Frequency, int Channels, BassFlags Flags, StreamProcedureType ProcedureType)
 {
     return(BASS_StreamCreate(Frequency, Channels, Flags, ProcedureType));
 }
Example #2
0
 static extern int BASS_StreamCreate(int Frequency, int Channels, BassFlags Flags, StreamProcedureType ProcedureType, IntPtr User = default(IntPtr));
Example #3
0
 public extern static int CreateStream(int Frequency, int Channels, BassFlags Flags, StreamProcedureType Procedure, IntPtr User = default(IntPtr));