private GetOutputDataHelper ( float samples, int channel ) : void | ||
samples | float | |
channel | int | |
return | void |
public static float[] GetOutputData(int numSamples, int channel) { float[] samples = new float[numSamples]; AudioListener.GetOutputDataHelper(samples, channel); return(samples); }
/// <summary> /// <para>Provides a block of the listener (master)'s output data.</para> /// </summary> /// <param name="samples">The array to populate with audio samples. Its length must be a power of 2.</param> /// <param name="channel">The channel to sample from.</param> public static void GetOutputData(float[] samples, int channel) { AudioListener.GetOutputDataHelper(samples, channel); }
public static float[] GetOutputData(int numSamples, int channel) { float[] array = new float[numSamples]; AudioListener.GetOutputDataHelper(array, channel); return(array); }