diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2015-01-23 16:45:18 -0800 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2015-02-18 17:29:20 -0800 |
commit | 56ec4ffcbae8aeac6c5245fc7b825d02e2e6cefd (patch) | |
tree | 914941adb956f3af389b9a7b955f3534eec4fe7a /services/audiopolicy/manager | |
parent | 8f7b7fa417566e9a6a29ea9f0e220b3cd6d1a9e3 (diff) | |
download | frameworks_av-56ec4ffcbae8aeac6c5245fc7b825d02e2e6cefd.zip frameworks_av-56ec4ffcbae8aeac6c5245fc7b825d02e2e6cefd.tar.gz frameworks_av-56ec4ffcbae8aeac6c5245fc7b825d02e2e6cefd.tar.bz2 |
Refactor AudioPolicyManager
AudioPolicyManager implementation is now split into the
following files:
files managerdefault/Gains.*
class AudioGain
class VolumeCurvePoint
class StreamDescriptor
files managerdefault/Devices.*
class DeviceDescriptor
class DeviceVector
files managerdefault/Ports.*
class AudioPort
class AudioPortConfig
class AudioPatch
files managerdefault/IOProfile.*
class IOProfile
files managerdefault/HwModule.*
class HwModule
files managerdefault/AudioInputDescriptor.*
class AudioInputDescriptor
files managerdefault/AudioOutputDescriptor.*
class AudioOutputDescriptor
All files for libaudiopolicyservice are moved under service/
All files for libaudiopolicymanager are moved under manager/
Change-Id: I43758be1894e37d34db194b51a19ae24461e066e
Diffstat (limited to 'services/audiopolicy/manager')
-rw-r--r-- | services/audiopolicy/manager/AudioPolicyFactory.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/services/audiopolicy/manager/AudioPolicyFactory.cpp b/services/audiopolicy/manager/AudioPolicyFactory.cpp new file mode 100644 index 0000000..9910a1f --- /dev/null +++ b/services/audiopolicy/manager/AudioPolicyFactory.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "managerdefault/AudioPolicyManager.h" + +namespace android { + +extern "C" AudioPolicyInterface* createAudioPolicyManager( + AudioPolicyClientInterface *clientInterface) +{ + return new AudioPolicyManager(clientInterface); +} + +extern "C" void destroyAudioPolicyManager(AudioPolicyInterface *interface) +{ + delete interface; +} + +}; // namespace android |