Beispiel #1
0
 public BASS_SAMPLE(int Freq, float Volume, float Pan, BASSFlag Flags, int Length, int Max, int OrigRes, int Chans, int MinGap, BASS3DMode Flag3D, float MinDist, float MaxDist, int IAngle, int OAngle, float OutVol, BASSVam FlagsVam, int Priority)
 {
     freq     = 0xac44;
     volume   = 1f;
     max      = 1;
     chans    = 2;
     outvol   = 1f;
     vam      = BASSVam.BASS_VAM_HARDWARE;
     freq     = Freq;
     volume   = Volume;
     pan      = Pan;
     flags    = Flags;
     length   = Length;
     max      = Max;
     origres  = OrigRes;
     chans    = Chans;
     mingap   = MinGap;
     mode3d   = Flag3D;
     mindist  = MinDist;
     maxdist  = MaxDist;
     iangle   = IAngle;
     oangle   = OAngle;
     outvol   = OutVol;
     vam      = FlagsVam;
     priority = Priority;
 }
Beispiel #2
0
 public BASS_SAMPLE(int Freq, float Volume, float Pan, BASSFlag Flags, int Length, int Max, int OrigRes, int Chans, int MinGap, BASS3DMode Flag3D, float MinDist, float MaxDist, int IAngle, int OAngle, float OutVol, BASSVam FlagsVam, int Priority)
 {
     this.freq     = 0xac44;
     this.volume   = 1f;
     this.max      = 1;
     this.chans    = 2;
     this.outvol   = 1f;
     this.vam      = BASSVam.BASS_VAM_HARDWARE;
     this.freq     = Freq;
     this.volume   = Volume;
     this.pan      = Pan;
     this.flags    = Flags;
     this.length   = Length;
     this.max      = Max;
     this.origres  = OrigRes;
     this.chans    = Chans;
     this.mingap   = MinGap;
     this.mode3d   = Flag3D;
     this.mindist  = MinDist;
     this.maxdist  = MaxDist;
     this.iangle   = IAngle;
     this.oangle   = OAngle;
     this.outvol   = OutVol;
     this.vam      = FlagsVam;
     this.priority = Priority;
 }
Beispiel #3
0
 public BASS_SAMPLE(int Freq, float Volume, float Pan, BASSFlag Flags, int Length, int Max, int OrigRes, int Chans, int MinGap, BASS3DMode Flag3D, float MinDist, float MaxDist, int IAngle, int OAngle, float OutVol, BASSVam FlagsVam, int Priority)
 {
     freq = 0xac44;
     volume = 1f;
     max = 1;
     chans = 2;
     outvol = 1f;
     vam = BASSVam.BASS_VAM_HARDWARE;
     freq = Freq;
     volume = Volume;
     pan = Pan;
     flags = Flags;
     length = Length;
     max = Max;
     origres = OrigRes;
     chans = Chans;
     mingap = MinGap;
     mode3d = Flag3D;
     mindist = MinDist;
     maxdist = MaxDist;
     iangle = IAngle;
     oangle = OAngle;
     outvol = OutVol;
     vam = FlagsVam;
     priority = Priority;
 }
 public Channel3DAttributes()
 {
     _mode = BASS3DMode.BASS_3DMODE_OFF;
     _iangle = _oangle = -1;
     _outvol = 100;
     _min = _max = 0F;
 }
 /// <summary>
 ///     Used with setting and getting Channel3DAttributes
 /// </summary>
 /// <param name="mode">BASS_3DMODE_xxx mode (-1=leave current setting)</param>
 /// <param name="min">minimum distance, volume stops increasing within this distance (smaller than 0.0=leave current)</param>
 /// <param name="max">maximum distance, volume stops decreasing past this distance (smaller than 0.0=leave current)</param>
 /// <param name="iangle">angle of inside projection cone in degrees (360=omnidirectional, -1=leave current)</param>
 /// <param name="oangle">
 ///     angle of outside projection cone in degrees (-1=leave current)
 ///     NOTE: iangle & oangle must both be set in a single call
 /// </param>
 /// <param name="outvol">delta-volume outside the projection cone (0=silent, 100=same as inside)</param>
 /// <remarks>
 ///     The iangle/oangle angles decide how wide the sound is projected around the
 ///     orientation angle. Within the inside angle the volume level is the channel
 ///     level as set with BASS_ChannelSetAttributes, from the inside to the outside
 ///     angles the volume gradually changes by the "outvol" setting.
 /// </remarks>
 public Channel3DAttributes(BASS3DMode mode, float min, float max,
     int iangle, int oangle, int outvol)
 {
     _mode = mode;
     _min = min;
     _max = max;
     _iangle = iangle;
     _oangle = oangle;
     _outvol = outvol;
 }
Beispiel #6
0
 public static extern bool BASS_ChannelGet3DAttributes(int handle, ref BASS3DMode mode, ref float min,
                                                       ref float max, ref int iangle, ref int oangle,
                                                       ref int outvol);
Beispiel #7
0
 public static extern bool BASS_ChannelSet3DAttributes(int handle, BASS3DMode mode, float min, float max,
                                                       int iangle, int oangle, int outvol);
Beispiel #8
0
 public static extern bool BASS_ChannelGet3DAttributes(int handle, ref BASS3DMode mode, ref float min,
                                                       ref float max, ref int iangle, ref int oangle,
                                                       ref int outvol);
Beispiel #9
0
 public static extern bool BASS_ChannelSet3DAttributes(int handle, BASS3DMode mode, float min, float max,
                                                       int iangle, int oangle, int outvol);
Beispiel #10
0
 public BASS_SAMPLE(int Freq, float Volume, float Pan, BASSFlag Flags, int Length, int Max, int OrigRes, int Chans, int MinGap, BASS3DMode Flag3D, float MinDist, float MaxDist, int IAngle, int OAngle, float OutVol, BASSVam FlagsVam, int Priority)
 {
     this.freq = 0xac44;
     this.volume = 1f;
     this.max = 1;
     this.chans = 2;
     this.outvol = 1f;
     this.vam = BASSVam.BASS_VAM_HARDWARE;
     this.freq = Freq;
     this.volume = Volume;
     this.pan = Pan;
     this.flags = Flags;
     this.length = Length;
     this.max = Max;
     this.origres = OrigRes;
     this.chans = Chans;
     this.mingap = MinGap;
     this.mode3d = Flag3D;
     this.mindist = MinDist;
     this.maxdist = MaxDist;
     this.iangle = IAngle;
     this.oangle = OAngle;
     this.outvol = OutVol;
     this.vam = FlagsVam;
     this.priority = Priority;
 }