Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop sound feature doesn't work #20

Open
ariadesu opened this issue Mar 3, 2018 · 8 comments
Open

Loop sound feature doesn't work #20

ariadesu opened this issue Mar 3, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@ariadesu
Copy link

ariadesu commented Mar 3, 2018

There's a tick, but it currently doesn't seem to loop correctly.

@fr33mind fr33mind self-assigned this Mar 4, 2018
@fr33mind
Copy link
Owner

fr33mind commented Mar 4, 2018

Hi,
Thanks for taking the time to report this issue. However i wasn't able to reproduce it. I did a couple of tests and the sound looped fine. Can you give more details of what you were doing?

@ariadesu
Copy link
Author

ariadesu commented Mar 4, 2018

I would love to provide whatever information you need, but I don't know what is useful. I'm on a Windows host, the play event looks like this https://i.imgur.com/kYwdb9i.png (Stolen assets only as a placeholder). It's a 256kb/s MP3. It has about a second of silence at the end. The file name is not identical to the name in the project browser. The file name is missing "MUSIC " at the start. It's 9 minutes 52 seconds long.

@ariadesu
Copy link
Author

ariadesu commented Mar 4, 2018

So it looks like the loop feature does indeed work correctly in Firefox and Edge. It does not however in the included preview browser and in Chrome

@fr33mind
Copy link
Owner

fr33mind commented Mar 4, 2018

Thanks for the details, they were helpful. So i tried looping a MP3 on Windows 7 and it worked on the latest versions of Firefox, Chrome and Internet Explorer 9. However i could confirm that it didn't work in the preview browser for some reason. What's more strange is that on Linux it works fine in the preview browser, as well as other browsers.

Therefore there's definitely something going on with the preview browser because someone else also experienced abnormal low volume with it. So i'm counting on updating it to a newer version (it comes in the Qt framework, i use for the editor) in Belle's next version, which hopefully will fix these strange issues.
On the other hand, regarding Chrome, i wasn't able to reproduce the issue. Which version of Chrome do you have?

@fr33mind fr33mind added the bug label Mar 4, 2018
@ariadesu
Copy link
Author

ariadesu commented Mar 4, 2018

"Version 64.0.3282.186 (Official Build) (64-bit)" Windows 10. I quickly tested on two other computers as well. Another Win 10 and a Ubuntu. On the Windows computer, I get identical behavior. Works correctly in Edge and Firefox, but not Chrome. The Ubuntu computer has the bug present in Chrome where the sound plays, but does not loop, and strangely, no sound at all with Firefox.

@fr33mind
Copy link
Owner

fr33mind commented Mar 4, 2018

Are those Windows 10 machines some sort of tablets like the Microsoft Surface Book?
I ask this because i've read there are some issues with HTML5 audio running on mobile. Therefore, if Chrome is recognizing those machines as mobile, it could be applying some restrictions to the audio, thus leading to the problem.

To solve this problem (which isn't exactly a bug in Belle) i'm planning to use a different library for playing sounds, that will use Web Audio instead of HTML5 audio, but i'm still researching it. As far as i know, Web audio shouldn't have these (silly) limitations.

Regarding Firefox on Ubuntu, that doesn't surprise me because Firefox on Ubuntu relies on codecs you have installed on the system to play some audio formats, like MP3. Thus in order to play them you need to install the codecs on the system.

@ariadesu
Copy link
Author

ariadesu commented Mar 4, 2018

Both of the Win 10 machines were desktops running Win 10 Pro on amd64. You're probably right on the Ubuntu, it's the first time I try playing sound from that install. I tested it with YouTube just to make sure audio playback works, but of course YouTube isn't just an MP3 file.

@fr33mind
Copy link
Owner

fr33mind commented Mar 4, 2018

Ok, thanks. Then i don't know. But, like i said, probably by switching to Web audio the problem will go away.

@fr33mind fr33mind removed the question label Mar 4, 2018
@fr33mind fr33mind added this to the 0.8 milestone Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants