Lines Matching defs:audioFormat
19 import android.media.AudioFormat;
102 public int start(int sampleRateInHz, int audioFormat, int channelCount) {
104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat
107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT &&
108 audioFormat != AudioFormat.ENCODING_PCM_16BIT &&
109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) {
110 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " +
111 "of AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT or " +
112 "AudioFormat.ENCODING_PCM_FLOAT");
114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount);
132 mAudioFormat = audioFormat;
203 int audioFormat = 0;
228 audioFormat = mAudioFormat;
237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength));
284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount,
286 int sampleSizeInBytes = AudioFormat.getBytesPerSample(audioFormat);