dolby: Initialized Spatial Audio
Signed-off-by: userariii <abhattacharjee717@gmail.com> Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
This commit is contained in:
parent
fac9089afd
commit
048d3bfbe3
5 changed files with 40 additions and 0 deletions
20
configs/android.hardware.sensor.dynamic.head_tracker.xml
Normal file
20
configs/android.hardware.sensor.dynamic.head_tracker.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 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.
|
||||
-->
|
||||
|
||||
<!-- Feature for devices with a head tracker sensor. -->
|
||||
<permissions>
|
||||
<feature name="android.hardware.sensor.dynamic.head_tracker" />
|
||||
</permissions>
|
||||
17
dolby.mk
17
dolby.mk
|
|
@ -45,6 +45,21 @@ PRODUCT_COPY_FILES += \
|
|||
PRODUCT_PACKAGES += \
|
||||
DolbyFrameworksResCommon
|
||||
|
||||
# Spatial Audio
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(DOLBY_PATH)/configs/android.hardware.sensor.dynamic.head_tracker.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.dynamic.head_tracker.xml \
|
||||
|
||||
# Spatial Audio: optimize spatializer effect
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
audio.spatializer.effect.util_clamp_min=300
|
||||
|
||||
# Spatial Audio: declare use of spatial audio
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.audio.spatializer_enabled=true \
|
||||
ro.audio.headtracking_enabled=true \
|
||||
ro.audio.spatializer_transaural_enabled_default=false \
|
||||
persist.vendor.audio.spatializer.speaker_enabled=true \
|
||||
|
||||
# Media C2 Vendor
|
||||
PRODUCT_PACKAGES += \
|
||||
libcodec2_hidl@1.0.vendor \
|
||||
|
|
@ -109,6 +124,8 @@ PRODUCT_COPY_FILES += \
|
|||
$(DOLBY_PATH)/proprietary/vendor/lib64/soundfx/libdlbvol.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libdlbvol.so \
|
||||
$(DOLBY_PATH)/proprietary/vendor/lib/soundfx/libdlbvol.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libdlbvol.so \
|
||||
$(DOLBY_PATH)/proprietary/vendor/lib/libdlbpreg.so:$(TARGET_COPY_OUT_VENDOR)/lib/libdlbpreg.so \
|
||||
$(DOLBY_PATH)/proprietary/vendor/lib/soundfx/libspatialaudio.so:$(TARGET_COPY_OUT_VENDOR)/lib/soundfx/libspatialaudio.so \
|
||||
$(DOLBY_PATH)/proprietary/vendor/lib64/soundfx/libspatialaudio.so:$(TARGET_COPY_OUT_VENDOR)/lib64/soundfx/libspatialaudio.so \
|
||||
|
||||
# LDAC/LHDC Proprietary Blobs
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@
|
|||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- The default value for whether head tracking for
|
||||
spatial audio is enabled for a newly connected audio device -->
|
||||
<bool name="config_spatial_audio_head_tracking_enabled_default">true</bool>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
BIN
proprietary/vendor/lib/soundfx/libspatialaudio.so
vendored
Normal file
BIN
proprietary/vendor/lib/soundfx/libspatialaudio.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib64/soundfx/libspatialaudio.so
vendored
Normal file
BIN
proprietary/vendor/lib64/soundfx/libspatialaudio.so
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue