Archive 17/01/2023.

32 bit WAV fails

Avagrande

Hi.

I am currently in the process of migrating a project of mine to urho3d.
When I attempt to load a 32 bit wav file it fails to load the resource. To be exact I am using audacity to export at “WAV (Microsoft) 32-bit float PCM” format. This only affects 32 bit wav and not 16 bit or OGG.

Is this a bug or are 32 bit wav files not supported?

I am using the resource cache in Lua like this:
local sound = cache:GetResource(“Sound”, “noise.wav”)

S.L.C

I get a Déjà vu feeling from this.

Gotta look through the issues on Gihub. brb

JTippetts

Could be related to an issue I had awhile back. Make sure your sounds are mono encoded, and not stereo.

Avagrande

The sources in question were all mono. you can test this by making a mono source ( can be just white noise if you want ) and saving it as either 16 bit or 32 bit wav and it wont let you load the 32 bit.
I decided to bulk convert my sounds to ogg for now.

Leith

I will try to find some time to check this out, its not been an issue for me so far but I am betting that the sound buffer in urho is 16 bit fixed word size