Function

GstPbutils-1.0GstPbutilscodec_utils_aac_get_index_from_sample_rate

  • Translates the sample rate to the index corresponding to it in AAC spec.

    Parameters

    • rate: number

      Sample rate

    Returns number

    The AAC index for this sample rate, -1 if the rate is not a valid AAC sample rate.