Loading media/libaaudio/src/client/AudioStreamInternal.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ aaudio_result_t AudioStreamInternal::open(const AudioStreamBuilder &builder) { } // We have to do volume scaling. So we prefer FLOAT format. if (getFormat() == AAUDIO_UNSPECIFIED) { if (getFormat() == AAUDIO_FORMAT_UNSPECIFIED) { setFormat(AAUDIO_FORMAT_PCM_FLOAT); } // Request FLOAT for the shared mixer. Loading media/libaaudio/src/legacy/AudioStreamRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ aaudio_result_t AudioStreamRecord::open(const AudioStreamBuilder& builder) : builder.getBufferCapacity(); // TODO implement an unspecified Android format then use that. audio_format_t format = (getFormat() == AAUDIO_UNSPECIFIED) audio_format_t format = (getFormat() == AAUDIO_FORMAT_UNSPECIFIED) ? AUDIO_FORMAT_PCM_FLOAT : AAudioConvert_aaudioToAndroidDataFormat(getFormat()); Loading services/oboeservice/AAudioServiceStreamShared.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques } mSampleRate = configurationInput.getSampleRate(); if (mSampleRate == AAUDIO_FORMAT_UNSPECIFIED) { if (mSampleRate == AAUDIO_UNSPECIFIED) { mSampleRate = mServiceEndpoint->getSampleRate(); } else if (mSampleRate != mServiceEndpoint->getSampleRate()) { ALOGE("AAudioServiceStreamShared::open(), mAudioFormat = %d, need %d", Loading @@ -85,7 +85,7 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques } mSamplesPerFrame = configurationInput.getSamplesPerFrame(); if (mSamplesPerFrame == AAUDIO_FORMAT_UNSPECIFIED) { if (mSamplesPerFrame == AAUDIO_UNSPECIFIED) { mSamplesPerFrame = mServiceEndpoint->getSamplesPerFrame(); } else if (mSamplesPerFrame != mServiceEndpoint->getSamplesPerFrame()) { ALOGE("AAudioServiceStreamShared::open(), mSamplesPerFrame = %d, need %d", Loading Loading
media/libaaudio/src/client/AudioStreamInternal.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ aaudio_result_t AudioStreamInternal::open(const AudioStreamBuilder &builder) { } // We have to do volume scaling. So we prefer FLOAT format. if (getFormat() == AAUDIO_UNSPECIFIED) { if (getFormat() == AAUDIO_FORMAT_UNSPECIFIED) { setFormat(AAUDIO_FORMAT_PCM_FLOAT); } // Request FLOAT for the shared mixer. Loading
media/libaaudio/src/legacy/AudioStreamRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ aaudio_result_t AudioStreamRecord::open(const AudioStreamBuilder& builder) : builder.getBufferCapacity(); // TODO implement an unspecified Android format then use that. audio_format_t format = (getFormat() == AAUDIO_UNSPECIFIED) audio_format_t format = (getFormat() == AAUDIO_FORMAT_UNSPECIFIED) ? AUDIO_FORMAT_PCM_FLOAT : AAudioConvert_aaudioToAndroidDataFormat(getFormat()); Loading
services/oboeservice/AAudioServiceStreamShared.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques } mSampleRate = configurationInput.getSampleRate(); if (mSampleRate == AAUDIO_FORMAT_UNSPECIFIED) { if (mSampleRate == AAUDIO_UNSPECIFIED) { mSampleRate = mServiceEndpoint->getSampleRate(); } else if (mSampleRate != mServiceEndpoint->getSampleRate()) { ALOGE("AAudioServiceStreamShared::open(), mAudioFormat = %d, need %d", Loading @@ -85,7 +85,7 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques } mSamplesPerFrame = configurationInput.getSamplesPerFrame(); if (mSamplesPerFrame == AAUDIO_FORMAT_UNSPECIFIED) { if (mSamplesPerFrame == AAUDIO_UNSPECIFIED) { mSamplesPerFrame = mServiceEndpoint->getSamplesPerFrame(); } else if (mSamplesPerFrame != mServiceEndpoint->getSamplesPerFrame()) { ALOGE("AAudioServiceStreamShared::open(), mSamplesPerFrame = %d, need %d", Loading