Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b76d78e6
Commit
b76d78e6
authored
Mar 17, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/sles: enable power saving mode
parent
0a6e484b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
NEWS
NEWS
+2
-0
SlesOutputPlugin.cxx
src/output/plugins/sles/SlesOutputPlugin.cxx
+8
-0
No files found.
NEWS
View file @
b76d78e6
...
...
@@ -15,6 +15,8 @@ ver 0.21.6 (not yet released)
* support abstract sockets on Linux
* Windows
- remove the unused libwinpthread-1.dll dependency
* Android
- enable SLES power saving mode
ver 0.21.5 (2019/02/22)
* protocol
...
...
src/output/plugins/sles/SlesOutputPlugin.cxx
View file @
b76d78e6
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment