FancyMenu icon indicating copy to clipboard operation
FancyMenu copied to clipboard

Audio Files not being Read properly

Open Camawama opened this issue 10 months ago • 13 comments

Describe the bug I have custom Hover Sounds on the Title Screen and they will work at random and constantly cut out. I noticed console errors saying this "[01:08:05] [Render thread/ERROR] [de.ke.fa.ut.re.re.au.wa.WavAudio/]: [FANCYMENU] Failed to read WAV audio from file! File not found:"

To Reproduce Steps to reproduce the behavior (e.g.):

  1. Play my Modpack
  2. Hover over buttons on Title Screen

Expected behavior The sound should play consistently for every button I hover over and not bug out and stop playing the sound

Game Log latest.log

Screenshots

Basic Informations (please complete the following information):

  • OS: Windows 10
  • FancyMenu Version: 3.1.4-1.20.1-forge
  • Forge/Fabric Version Forge: 1.20.1-47.2.17
  • Minecraft Version: 1.20.1
  • Active Mods: Many

Camawama avatar Apr 09 '24 06:04 Camawama

Please start the game with only FancyMenu + dependencies installed.

Keksuccino avatar Apr 09 '24 09:04 Keksuccino

Also please move your audio files to /config/fancymenu/assets/. Looks like you're using a layout that got converted from FancyMenu v2 to v3, so there might be some problems related to that, but not sure.

Keksuccino avatar Apr 09 '24 09:04 Keksuccino

My assets are in the right place. I'll try it without any other mods possibly some time tonight. image

Camawama avatar Apr 11 '24 00:04 Camawama

Well, your Audio elements don't know about this, because they are searching for files at the wrong place: [FANCYMENU] Failed to read WAV audio from file! File not found: C:\Users\ackru\AppData\Roaming\com.modrinth.theseus\profiles\CC BARE\config\SOUNDS\hover.wav.

That could be the very simple reason for why some sounds don't work :D That's also why you probably got the "file not found" error in the first place.

Keksuccino avatar Apr 11 '24 11:04 Keksuccino

Well, your Audio elements don't know about this, because they are searching for files at the wrong place: [FANCYMENU] Failed to read WAV audio from file! File not found: C:\Users\ackru\AppData\Roaming\com.modrinth.theseus\profiles\CC BARE\config\SOUNDS\hover.wav.

That could be the very simple reason for why some sounds don't work :D That's also why you probably got the "file not found" error in the first place.

Very strange...I went through every single sound and set the proper file locations but it's still searching in the wrong spot.

Camawama avatar Apr 13 '24 03:04 Camawama

I'm having this issue too. My files are in the right place to read the files I need but they won't play anything. Both for background music and button interaction.

OS: Windows 10 Home FancyMenu: v3.1.4 Fabric Loader: v0.15.10 Minecraft: v1.18.2 Active Mods: Many

Latest Log for FancyMenu to read: https://paste.ee/p/uXtXw

CAYOK avatar Apr 16 '24 23:04 CAYOK

I'm having this issue too. My files are in the right place to read the files I need but they won't play anything. Both for background music and button interaction.

OS: Windows 10 Home FancyMenu: v3.1.4 Fabric Loader: v0.15.10 Minecraft: v1.18.2 Active Mods: Many

Latest Log for FancyMenu to read: https://paste.ee/p/uXtXw

That's because your audio files are not supported by Minecraft's audio engine in some way. Please take a look at this: https://docs.fancymenu.net/en/fix-audio

Keksuccino avatar Apr 17 '24 01:04 Keksuccino

Owner

Ah, my apologies. I never saw the fix audio guide on your wiki. The guide on the wiki did clear my issue. Sorry for the confusion.

CAYOK avatar Apr 17 '24 01:04 CAYOK

Owner

Ah, my apologies. I never saw the fix audio guide on your wiki. The guide on the wiki did clear my issue. Sorry for the confusion.

It wasn't in the docs before. I just added it :D That normally only gets asked in Discord, that's why I never thought of adding it to the docs.

Keksuccino avatar Apr 17 '24 04:04 Keksuccino

Can confirm that the issue is happening even with FancyMenu by itself with no other mods. I was using WAV files at first but decided to switch everything to .OGG since I thought it would be better supported. It didn't work.

I then converted every .OGG to .MP3 and then back to .OGG like you suggested for the other guy...but that also didn't work. I wasted a crap ton of time doing all that but at least ruled out that it isn't anything but FancyMenu causing the issue.

Minecraft Version: 1.20.1 Forge Version: 47.2.17 FancyMenu Version: 3.1.5-1.20.1-forge Melody Version: 1.0.3-1.20.1-1.20.4-forge Konkrete Version: 1.8.0-1.20-1.20.1-forge

Logs: latest.log debug.log

Camawama avatar Apr 19 '24 04:04 Camawama

Noticed that the sounds ARE playing but extremely quiet and only in the Left Channel? It's super weird. Sometimes I feel like I can't hear the sound at all but when I do hear it, it's so quiet it might as well not be there.

Camawama avatar Apr 26 '24 00:04 Camawama

Noticed that the sounds ARE playing but extremely quiet and only in the Left Channel? It's super weird. Sometimes I feel like I can't hear the sound at all but when I do hear it, it's so quiet it might as well not be there.

That sounds like the audio file is partly incompatible with Minecraft's sound engine.

Keksuccino avatar Apr 26 '24 09:04 Keksuccino

I boot up the pack and the hover sounds work perfectly fine. The second I click on one of the buttons, the click sound doesn't play and the hover sounds sorta break. After loading into a world, none of the sounds work anymore/are extremely quiet.

Camawama avatar May 01 '24 00:05 Camawama