diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/plugins/sles/SlesOutputPlugin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/plugins/sles/SlesOutputPlugin.cxx b/src/output/plugins/sles/SlesOutputPlugin.cxx index 3ebe08dfd..f1ef758e4 100644 --- a/src/output/plugins/sles/SlesOutputPlugin.cxx +++ b/src/output/plugins/sles/SlesOutputPlugin.cxx @@ -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); |