private uint GetNBands() { if (equalizer == null) { return(0); } return(ChildProxyAdapter.GetObject(equalizer).ChildrenCount); }
public void SetEqualizerGain(uint band, double value) { if (equalizer != null) { if (band >= GetNBands()) { throw new ArgumentOutOfRangeException("band", "Attempt to set out-of-range equalizer band"); } Gst.Object the_band = ChildProxyAdapter.GetObject(equalizer).GetChildByIndex(band); the_band ["gain"] = value; } }