Adjust cat sound volumes in cat-animation.js for better audio balance, setting meow to 0.1 and paw to 0, while removing the paw sound initialization.

This commit is contained in:
Mohammed Al-yaseen
2025-05-15 01:41:22 +03:00
parent 6e3339083c
commit 4b0cc378f9

View File

@@ -30,12 +30,10 @@ class Cat {
// Create audio elements with error handling // Create audio elements with error handling
try { try {
this.sounds.meow = new Audio('sounds/meow.wav'); this.sounds.meow = new Audio('sounds/meow.wav');
this.sounds.paw = new Audio('sounds/paw.wav');
// Set volume for each sound // Set volume for each sound
this.sounds.meow.volume = 0.4; this.sounds.meow.volume = 0.1;
this.sounds.purr.volume = 0.3; this.sounds.paw.volume = 0;
this.sounds.paw.volume = 0.2;
// Add error handling for each sound // Add error handling for each sound
Object.entries(this.sounds).forEach(([key, sound]) => { Object.entries(this.sounds).forEach(([key, sound]) => {