Member Junction
    Preparing search index...
    • Generates one COMFORT_TONE_LOOP_SECONDS-second pass of the comfort tone as mono PCM16. Loop it end to end.

      Parameters

      • sampleRate: number

        The rate to synthesize at, in Hz (generate at the playback rate to avoid resampling).

      Returns Int16Array

      Mono PCM16 samples; every sample's magnitude is at most COMFORT_TONE_PEAK of full scale.

      when sampleRate is not a positive integer.