"COCOS2DX Audio" has sound on Android, but Win32 has no sound

Source: Internet
Author: User

Because just contact COCOS2DX, a lot of knowledge point is not very clear, online download example program, in Win32 no sound, but transplant on Android have voice.

Online check, is due to different platforms supported by different audio formats caused by the audio file to transcode.

Reference Official Document: http://cn.cocos2d-x.org/article/index?type=cocos2d-x&url=/doc/cocos-docs-master/manual/framework/ Native/v3/audio-and-effect/zh.md

supported platforms and formats

The music formats supported by Cocosdesion are as follows:

platform common file formats supported remarks
android mp3, Mid, OGGG, WAV
iOS AAC , CAF, MP3, M4A, wav
Windows Mid, MP3, WAV No

The audio formats supported by Cocosdesion are as follows:

Platform common file formats supported Notes
Android OGGG, WAV Support for WAV is not perfect
iOS CAF , M4A You can play all the formats supported by Cocos2d-iphone cocosdesion
Windows Mid, WAV No

"COCOS2DX Audio" has sound on Android, but Win32 has no sound

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.