mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-02 10:51:45 +02:00
Use Android performance mode "none"
This commit is contained in:
parent
412861c891
commit
9fa648cebb
2 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,7 @@ oboe::Result OboePlayer::openStream()
|
|||
// The builder set methods can be chained for convenience.
|
||||
oboe::AudioStreamBuilder builder;
|
||||
auto result = builder.setSharingMode(sharing_mode)
|
||||
->setPerformanceMode(oboe::PerformanceMode::LowLatency)
|
||||
->setPerformanceMode(oboe::PerformanceMode::None)
|
||||
->setChannelCount(stream_->getFormat().channels())
|
||||
->setSampleRate(stream_->getFormat().rate())
|
||||
->setFormat(oboe::AudioFormat::I16)
|
||||
|
|
|
@ -282,6 +282,9 @@ void OpenslPlayer::initOpensl()
|
|||
//// SLint32 streamType = SL_ANDROID_STREAM_VOICE;
|
||||
result = (*playerConfig)->SetConfiguration(playerConfig, SL_ANDROID_KEY_STREAM_TYPE, &streamType, sizeof(SLint32));
|
||||
throwUnsuccess(kPhaseInit, "PlayerConfig::SetConfiguration", result);
|
||||
// Set the performance mode.
|
||||
SLuint32 performanceMode = SL_ANDROID_PERFORMANCE_NONE;
|
||||
result = (*playerConfig)->SetConfiguration(playerConfig, SL_ANDROID_KEY_PERFORMANCE_MODE, &performanceMode, sizeof(performanceMode));
|
||||
|
||||
result = (*bqPlayerObject)->Realize(bqPlayerObject, SL_BOOLEAN_FALSE);
|
||||
throwUnsuccess(kPhaseInit, "PlayerObject::Realize", result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue