Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17118

Assert attempting to play audio in win8.1 project on Windows10

$
0
0

@JohnnyC wrote:

Very strange problem.
My code already works on iOS, Android and Mac.

With my game now updated to Cocos2d-x 3.9, using the win8.1-universal project (win32 project creates an executable that doesn't run!!!).

Run my game...music plays smile
(quit game)
Run my game again...assert!!!!!!!!!!!!

The game will NOT play music until I rename the audio file or rename the folder it's in (eg. Resources/Audio/music.wav to Resources/WTF/music.wav), obviously I rename the filename/path within the code to reflect this change.

After renaming, it'll run once, then everytime after....assert!!!!

The assert is this one:

long FileUtils::getFileSize(const std::string &filepath)
{
    CCASSERT(false, "getFileSize should be override by platform FileUtils");
    return 0;
}

Someone else obviously has exactly the same issue here:

Also, I've checked that the file (& paths) have been copied across by VS into the "proj.win8.1-universal/Debug/mygame.Windows/AppX/Assets/Resources/" folder.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17118

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>