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

Port sound to HTML5 #13

Open
moonshine opened this issue May 23, 2010 · 7 comments
Open

Port sound to HTML5 #13

moonshine opened this issue May 23, 2010 · 7 comments

Comments

@moonshine
Copy link

Is it possible to port Flash sound to HTML5 audio?

@macek
Copy link
Owner

macek commented May 24, 2010

It would be cool if someone has the know-how for this :)

@Varstahl
Copy link

I think it can be done, but requires quite a bit of effort. I might look into that later, but seems slightly unnecessary overkill at the moment.

@macek
Copy link
Owner

macek commented May 24, 2010

@Varstahl, the biggest benefit here is that sound would work in offline mode.

@Varstahl
Copy link

But sounds, through many ways, works fine in offline mode. Either "fixing" the directory for Flash, or using a tiny web server (there are a lot around for all platforms) to host just the pacman page to use offline.

Of course it would be a benefit, but what I was thinking about is that to do that we would need to dump/encode around a 50 or so waves, then incorporate them into HTML5, which as far as I know several browsers don't fully support, and then change all the code for sound to switch it from flash to html.

You can see it's a bit time consuming. Possible, but time consuming. That's all :)

@mcepl
Copy link
Contributor

mcepl commented Apr 21, 2015

Branch https://github.com/mcepl/google_pacman/tree/html5 of my fork has uncompressed resources from the .swf file, if it helps anybody.

@macek
Copy link
Owner

macek commented Apr 21, 2015

@mcepl thanks for linking your repository

@ghost
Copy link

ghost commented Mar 19, 2018

I removed the flash player logic and added calls to the Web Audio API. The sound SWF file was replaced with in-line data in a separate JavaScript file, so it will work offline. One new line was added to index.html and about 10 new lines of code were added to pacman10-hp.3.js. Should I make a pull request? Is there any concern about putting the sound data in a JavaScript file? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants