// Achievement sound player using the notification system import { soundPlayer } from "$lib/notifications"; import { NotificationType } from "$lib/notifications/types"; export function playAchievementSound() { // Use the soundPlayer which respects global notification settings soundPlayer.play(NotificationType.ACHIEVEMENT); } // Test function for development export function testAchievementSound() { try { playAchievementSound(); console.log("Achievement sound played successfully!"); } catch (error) { console.error("Error playing achievement sound:", error); } }