While playing a game under construction in the editor I have two issues with sound.

1. The first time playing a background-sound the sound quality is terrible. Loud, sounds like it playing over itself. Once the first sound file has played through, the rest of the sounds plays normal.

To me this only happens in the editor. Playing a built version in browser or as desktop version don't have the problem, for me.

I now have had a complaint from a user ('the music overlaps itself') that indicates that the problem may appear in a browser played version as well. [Possibly also a second complaint, but that one is a bit more vague and could be a dislike of the music as such. ]

I suspect this could be a browser (and possibly OS) related problem.

Is this a known problem? If it is, it could be nice to at least be able to give a warning to potential players when posting the game.

2. Video-clips with soundtrack will not play the sound in the editor, but will play sound in built version in browser and desk top. No indication of problem from other players, but that is also something that is less likely to generate a complaint.

I'm using mp4 files. Also have tested ogv and mkv, but I suspect mp4 can be played in more different browser types.

    Sound quality drop for the first sound is probably Howler.js' fault. You may want to switch to ct.sound.basic module instead of ct.sound.howler for now if it is a big issue for you — better replacement for both will come only after v3, and it definitely won't be released in the nearest month.

      I googled the problem with muted videos in NW.js (which is used by ct.js) and it seems that some audio codecs are not supported. If you can encode audio tracks in an open-source format (opus/vorbis), it will probably play in ct.js and in OSS browsers like Chromium (not Chrome). MP3 audio track should work as well as its patent ended aeons ago.

        Write a Reply...