Jump to content

Search the Community

Showing results for tags 'nw.js'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi Everyone, In babylon.js, loading sounds through nw.js (v0.12.1 windows and linux) wouldn't work. using the same code from the babylonjs audio tutorial: // Load the sound and play it automatically once readyvar music = new BABYLON.Sound("Music", "music.wav", scene, null, { loop: true, autoplay: true });I replaced the filenames with the correct paths and got this error: (if the filename is incorrect it's this error instead: So it seems like the file was loading fine) So I looked at the line that was reporting the error (in babylon.2.1-beta.debug.js) , commented it out, and added the code that runs when there isn't an error, and the sound loaded and played! (using the latest babylon.js 2.1-beta, but the error also happened on babylon.js 2.0 stable) That's the temporary fix I found , I'm not sure what is causing the error, possibly something to do with loading local files? As a side note, The Wav file works, but when I tried an mp3 it gave this error: nw.js is based on chromium which should support mp3 files, so I'm not sure what happened, But for now wav files still work so this is just a quick fix if anyone is having problems with sound in nw.js
×
×
  • Create New...