HTML5 Build error. No mapping for .ogg

We use .ogg audio files in our game.

When we build our game for Windows we have no errors.

When we build our game for HTML5 we have error: No mapping for .ogg

What is going on?

Hard to tell. Can you send one of the files so we can test?

Could it be something with file extension case? I believe we had a problem with a file with extension .OGG and not .ogg a couple of weeks back.

All file extensions was in lower case.

Can you share a minimal project with the problem?

HTML5 OGG.zip (94.7 KB)

Try to build HTML5.

Ah, but this is exactly this issue: What is 'No mapping for .ogg'? (SOLVED)

You can’t use “Add Component File” and select the .ogg. You need to Add Component->Sound and then select the .ogg file. We will of course fix this. I thought this was another problem.

@Erik_Angelin and @mats.gisselson. We should not allow .ogg and .wav to be added directly. They really should be added via a Sound component.

2 Likes