output/sles: enable power saving mode
This commit is contained in:
@@ -229,6 +229,14 @@ SlesOutput::Open(AudioFormat &audio_format)
|
||||
SL_ANDROID_KEY_STREAM_TYPE,
|
||||
&stream_type,
|
||||
sizeof(stream_type));
|
||||
|
||||
/* MPD doesn't care much about latency, so let's
|
||||
configure power saving mode */
|
||||
SLuint32 performance_mode = SL_ANDROID_PERFORMANCE_POWER_SAVING;
|
||||
(*android_config)->SetConfiguration(android_config,
|
||||
SL_ANDROID_KEY_PERFORMANCE_MODE,
|
||||
&performance_mode,
|
||||
sizeof(performance_mode));
|
||||
}
|
||||
|
||||
result = play_object.Realize(false);
|
||||
|
Reference in New Issue
Block a user