# Vanta Tones (OVERHAUL.md row 23). Every file here is synthesised by
# tools/gen_tones.py; regenerate there, never edit the .ogg files by hand.
#
# Every file carries a Vanta_ name. PRODUCT_COPY_FILES is first-wins, and a
# device product (lineage_b5q, lineage_gsi_arm64) inherits AOSP's AllAudio.mk
# through full_base_telephony BEFORE Lineage's common.mk reaches vendor/extra,
# so a file copied over an AOSP name (Lock.ogg) would silently lose. Unique
# names never collide; the defaults are re-pointed instead: ringtone /
# notification / alarm by ro.config.*, UI sounds by VantaSoundsSettingsOverlay
# (SettingsProvider defaults) and VantaSoundsOverlay (xml/audio_assets).

VANTA_TONES := vendor/vanta/tones
VANTA_AUDIO := $(TARGET_COPY_OUT_PRODUCT)/media/audio

PRODUCT_COPY_FILES += \
    $(VANTA_TONES)/ringtones/Vanta_Ring.ogg:$(VANTA_AUDIO)/ringtones/Vanta_Ring.ogg \
    $(VANTA_TONES)/ringtones/Vanta_Halo.ogg:$(VANTA_AUDIO)/ringtones/Vanta_Halo.ogg \
    $(VANTA_TONES)/ringtones/Vanta_Pulse.ogg:$(VANTA_AUDIO)/ringtones/Vanta_Pulse.ogg \
    $(VANTA_TONES)/notifications/Vanta_Ping.ogg:$(VANTA_AUDIO)/notifications/Vanta_Ping.ogg \
    $(VANTA_TONES)/notifications/Vanta_Glint.ogg:$(VANTA_AUDIO)/notifications/Vanta_Glint.ogg \
    $(VANTA_TONES)/notifications/Vanta_Drop.ogg:$(VANTA_AUDIO)/notifications/Vanta_Drop.ogg \
    $(VANTA_TONES)/notifications/Vanta_Orbit.ogg:$(VANTA_AUDIO)/notifications/Vanta_Orbit.ogg \
    $(VANTA_TONES)/alarms/Vanta_Dawn.ogg:$(VANTA_AUDIO)/alarms/Vanta_Dawn.ogg \
    $(VANTA_TONES)/ui/Vanta_Lock.ogg:$(VANTA_AUDIO)/ui/Vanta_Lock.ogg \
    $(VANTA_TONES)/ui/Vanta_Unlock.ogg:$(VANTA_AUDIO)/ui/Vanta_Unlock.ogg \
    $(VANTA_TONES)/ui/Vanta_Trusted.ogg:$(VANTA_AUDIO)/ui/Vanta_Trusted.ogg \
    $(VANTA_TONES)/ui/Vanta_LowBattery.ogg:$(VANTA_AUDIO)/ui/Vanta_LowBattery.ogg \
    $(VANTA_TONES)/ui/Vanta_ChargingStarted.ogg:$(VANTA_AUDIO)/ui/Vanta_ChargingStarted.ogg \
    $(VANTA_TONES)/ui/Vanta_WirelessChargingStarted.ogg:$(VANTA_AUDIO)/ui/Vanta_WirelessChargingStarted.ogg \
    $(VANTA_TONES)/ui/Vanta_Effect_Tick.ogg:$(VANTA_AUDIO)/ui/Vanta_Effect_Tick.ogg \
    $(VANTA_TONES)/ui/Vanta_KeypressStandard.ogg:$(VANTA_AUDIO)/ui/Vanta_KeypressStandard.ogg \
    $(VANTA_TONES)/ui/Vanta_KeypressSpacebar.ogg:$(VANTA_AUDIO)/ui/Vanta_KeypressSpacebar.ogg \
    $(VANTA_TONES)/ui/Vanta_KeypressDelete.ogg:$(VANTA_AUDIO)/ui/Vanta_KeypressDelete.ogg \
    $(VANTA_TONES)/ui/Vanta_KeypressReturn.ogg:$(VANTA_AUDIO)/ui/Vanta_KeypressReturn.ogg

PRODUCT_PACKAGES += \
    VantaSoundsOverlay \
    VantaSoundsSettingsOverlay

PRODUCT_PRODUCT_PROPERTIES += \
    ro.config.ringtone=Vanta_Ring.ogg \
    ro.config.notification_sound=Vanta_Ping.ogg \
    ro.config.alarm_alert=Vanta_Dawn.ogg
