#!/bin/bash

# Compress audio files using ffmpeg
mkdir -p assets/audio/compressed

# Compress background music
ffmpeg -i assets/audio/ambient_background.mp3 \
    -ac 1 -ar 22050 -b:a 48k \
    assets/audio/compressed/ambient_background.mp3

# Compress bubble sounds
ffmpeg -i assets/audio/bubble_pop.wav \
    -ac 1 -ar 22050 -b:a 32k \
    assets/audio/compressed/bubble_pop.wav

ffmpeg -i assets/audio/bubble_pop_alt.wav \
    -ac 1 -ar 22050 -b:a 32k \
    assets/audio/compressed/bubble_pop_alt.wav

echo "Audio files compressed successfully"