Exemplo n.º 1
0
 /// <summary>
 /// Gets the pan of the specified channel.
 /// </summary>
 /// <param name="handle">The handle that represents the channel to evaluate.</param>
 /// <returns>The channel's pan.</returns>
 public static Single GetPan(UInt32 handle)
 {
     unsafe
     {
         Single value;
         if (!BASSNative.ChannelGetAttribute(handle, BASSAttrib.ATTRIB_PAN, &value))
         {
             throw new BASSException();
         }
         return(value);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the pitch of the specified channel.
 /// </summary>
 /// <param name="handle">The handle that represents the channel to evaluate.</param>
 /// <returns>The channel's pitch.</returns>
 public static Single GetPitch(UInt32 handle)
 {
     unsafe
     {
         Single value;
         if (!BASSNative.ChannelGetAttribute(handle, BASSAttrib.ATTRIB_TEMPO_PITCH, &value))
         {
             throw new BASSException();
         }
         return(value / SemitonesPerOctave);
     }
 }