PCMUtil

open class PCMUtil

Created by pedro on 3/07/17.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun mixPCM(pcm1: Array<Byte>, pcm2: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun pcmToStereo(pcm: Array<Byte>, channels: Int): Array<Byte>
Experimental method to downgrade pcm with 3 channels or more to stereo.
Link copied to clipboard
open fun resample(pcm: Array<Byte>, channels: Int, inputSampleRate: Int, outputSampleRate: Int): Array<Byte>
Resample pcm 16 bits little endian (mono or stereo) to the given sample rate.
open fun resample(pcm: Array<Byte>, inputChannels: Int, outputChannels: Int, inputSampleRate: Int, outputSampleRate: Int): Array<Byte>
Resample pcm 16 bits little endian to the given sample rate and convert channels in the same pass.