#20636·cocos2d-x

Can not play .wav file on Win32

Author: VersusRainCreated Dec 31, 2020Updated Aug 26, 2025
  • cocos2d-x version: 4.0
  • devices test on: Win32 , android
  • developing environments
    • NDK version: r 20
    • Xcode version: not use it
    • VS version: VS 2015
    • browser type and version:

Steps to Reproduce:

  1. On Win32:I call the function -------- AudioEngine::play2d("audio/1.wav"); It‘s not worked! but when convert the wav to mp3 by using other application, then call AudioEngine::play2d("audio/1.mp3"); It’s worked !
  2. by the way, on the my android devices , the wav file this worked,too.