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

No Opus support #1232

Closed
Rovanion opened this issue Oct 13, 2014 · 3 comments
Closed

No Opus support #1232

Rovanion opened this issue Oct 13, 2014 · 3 comments

Comments

@Rovanion
Copy link
Contributor

The Internet Engineering Task Force (IETF) standard for audio Opus [0] is not supported by Phaser. Even though Firefox, Chrome, Opera and Firefox for Android [1] currently implements the codec Phaser won't load it on those platforms.

For example in my code I have the following statement:

    this.load.audio('funtime', ['assets/sound/super-happy-fun-time.opus'], true);

Which results in the following warning:

Phaser.Loader error loading file: funtime from URL null

[0] https://en.wikipedia.org/wiki/Opus_%28audio_format%29
[1] http://caniuse.com/opus

@photonstorm
Copy link
Collaborator

Phaser will happily load and play audio using the Opus codec if wrapped in an ogg container, the most common method of delivering opus files. We can add support for direct opus file formats as well in the next version.

@Rovanion
Copy link
Contributor Author

That sounds great!

photonstorm added a commit that referenced this issue Oct 13, 2014
…s `opus` encoded audio stored in ogg containers (#1232)
@photonstorm
Copy link
Collaborator

Done.

FluffyDeluxe pushed a commit to FluffyDeluxe/phaser that referenced this issue Oct 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants