Searched refs:audioFileInfo (Results 1 – 2 of 2) sorted by relevance
55 private AudioFileInfo audioFileInfo; field in RecordVoiceInCall97 audioFileInfo = AudioFileInfo.create("WAVE", sampleRate, channelCount); in setRecordAudioInfo()104 int channelMask = audioFileInfo.channelCount() == 1 ? AudioFormat.CHANNEL_IN_MONO in setAudioFormat()107 .setSampleRate(audioFileInfo.sampleRate()).setEncoding(AudioFormat.ENCODING_PCM_16BIT) in setAudioFormat()220 getShortByOrder((short) audioFileInfo.channelCount(), LITTLE_ENDIAN)); in writeWaveHeader()223 getIntByOrder(audioFileInfo.sampleRate(), LITTLE_ENDIAN)); in writeWaveHeader()225 int byteRate = audioFileInfo.sampleRate() * audioFileInfo.channelCount() * PCM_16_BITS/2; in writeWaveHeader()229 int blockAlign = audioFileInfo.channelCount() * PCM_16_BITS / 2; in writeWaveHeader()
49 private AudioFileInfo audioFileInfo; field in PlayAudioInCall164 audioFileInfo = AudioFileInfo.create(format.getString(MediaFormat.KEY_MIME), in setupAudioFileInfo()167 Log.d(String.format("The media format is %s", audioFileInfo)); in setupAudioFileInfo()172 int channelMask = audioFileInfo.channelCount() == 1 ? AudioFormat.CHANNEL_OUT_MONO in getAudioFormat()175 .setSampleRate(audioFileInfo.sampleRate()).setEncoding(AudioFormat.ENCODING_PCM_16BIT) in getAudioFormat()