Loading services/oboeservice/AAudioServiceEndpointShared.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ aaudio_result_t AAudioServiceEndpointShared::open(const aaudio::AAudioStreamRequ builder.setBufferCapacity(DEFAULT_BUFFER_CAPACITY); // Each shared stream will use its own SRC. builder.setSampleRate(AAUDIO_UNSPECIFIED); result = mStreamInternal->open(builder); setSampleRate(mStreamInternal->getSampleRate()); Loading services/oboeservice/AAudioServiceStreamShared.cpp +3 −10 Original line number Diff line number Diff line Loading @@ -144,6 +144,9 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques goto error; } // Use the sample rate of the endpoint as each shared stream should use its own SRC. setSampleRate(endpoint->getSampleRate()); // Is the request compatible with the shared endpoint? setFormat(configurationInput.getFormat()); if (getFormat() == AUDIO_FORMAT_DEFAULT) { Loading @@ -154,16 +157,6 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques goto error; } setSampleRate(configurationInput.getSampleRate()); if (getSampleRate() == AAUDIO_UNSPECIFIED) { setSampleRate(endpoint->getSampleRate()); } else if (getSampleRate() != endpoint->getSampleRate()) { ALOGD("%s() mSampleRate = %d, need %d", __func__, getSampleRate(), endpoint->getSampleRate()); result = AAUDIO_ERROR_INVALID_RATE; goto error; } setChannelMask(configurationInput.getChannelMask()); if (getChannelMask() == AAUDIO_UNSPECIFIED) { setChannelMask(endpoint->getChannelMask()); Loading Loading
services/oboeservice/AAudioServiceEndpointShared.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ aaudio_result_t AAudioServiceEndpointShared::open(const aaudio::AAudioStreamRequ builder.setBufferCapacity(DEFAULT_BUFFER_CAPACITY); // Each shared stream will use its own SRC. builder.setSampleRate(AAUDIO_UNSPECIFIED); result = mStreamInternal->open(builder); setSampleRate(mStreamInternal->getSampleRate()); Loading
services/oboeservice/AAudioServiceStreamShared.cpp +3 −10 Original line number Diff line number Diff line Loading @@ -144,6 +144,9 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques goto error; } // Use the sample rate of the endpoint as each shared stream should use its own SRC. setSampleRate(endpoint->getSampleRate()); // Is the request compatible with the shared endpoint? setFormat(configurationInput.getFormat()); if (getFormat() == AUDIO_FORMAT_DEFAULT) { Loading @@ -154,16 +157,6 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques goto error; } setSampleRate(configurationInput.getSampleRate()); if (getSampleRate() == AAUDIO_UNSPECIFIED) { setSampleRate(endpoint->getSampleRate()); } else if (getSampleRate() != endpoint->getSampleRate()) { ALOGD("%s() mSampleRate = %d, need %d", __func__, getSampleRate(), endpoint->getSampleRate()); result = AAUDIO_ERROR_INVALID_RATE; goto error; } setChannelMask(configurationInput.getChannelMask()); if (getChannelMask() == AAUDIO_UNSPECIFIED) { setChannelMask(endpoint->getChannelMask()); Loading