-
Notifications
You must be signed in to change notification settings - Fork 66
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
Rename Audio class to XAudio2Engine #24
Comments
Michaël were you able to play a soundfile using SimpleAudioEngine for this Branch |
Yes, I have my whole game working on Windows 8 tablet now (tested on ASUS vivotab). |
Michaël can you share a code snippet for the fix that you induced in your game for it. It would be nice of you |
Michaël this issue is for 2.1 Api |
My issue was for the cocos2dx-win8 code (master branch), not the Cocos2d-x for wp8 v2.0 preview (wp8_v2 branch). I only now notice that they are on the same github, after you posted this :) EDIT: I looked at the WP8 V2.0 code as well, and the audio code is mostly the same (same issue on "Audio" class name), with the big difference being that is uses the mediastreamer to load the sound. I'm assuming that this is related to ARM code. I haven't tested it out in my game, just compared the code to the MASTER branch. |
Could you rename the Audio class used by the SimpleAudioEngine to XAudio2Engine?
As the very generic Audio name is bound to conflict with other generic audio classes.
I already did it locally and can provide you with the code (renamed Audio class and updated SimpleAudioEngine class), if you're interested.
Kind regards,
Michaël
The text was updated successfully, but these errors were encountered: