summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioSystem.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-12-19 16:35:18 -0800
committerGlenn Kasten <gkasten@google.com>2013-12-19 17:00:04 -0800
commitc23885ebb142b9da31543789ecc3f7cf7111bc67 (patch)
treed9efe1cf2119c46e5822c5bb47881e9446f200fb /media/libmedia/AudioSystem.cpp
parentbd72d22097f78f5bd668b223bc8c94e351311e31 (diff)
downloadframeworks_av-c23885ebb142b9da31543789ecc3f7cf7111bc67.zip
frameworks_av-c23885ebb142b9da31543789ecc3f7cf7111bc67.tar.gz
frameworks_av-c23885ebb142b9da31543789ecc3f7cf7111bc67.tar.bz2
Add versions of get/SetParameters without I/O handle
This is a step towards hiding I/O handles from application level, as much as possible. Change-Id: I30f4171d5dcf77f8e8eb332ce2e9245b30f5f2e1
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r--media/libmedia/AudioSystem.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index 8033c2c..18f0f46 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -190,6 +190,16 @@ String8 AudioSystem::getParameters(audio_io_handle_t ioHandle, const String8& ke
return result;
}
+status_t AudioSystem::setParameters(const String8& keyValuePairs)
+{
+ return setParameters((audio_io_handle_t) 0, keyValuePairs);
+}
+
+String8 AudioSystem::getParameters(const String8& keys)
+{
+ return getParameters((audio_io_handle_t) 0, keys);
+}
+
// convert volume steps to natural log scale
// change this value to change volume scaling