mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +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
|
@ -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