Open parkerc22 opened 1 year ago
const guitarMusic = require("./public/music.mp3").default;
If we have a directory called "public" with the desired file inside (music or an image or the like), the above code generates a local URL that we can use in app.js:
audioLoader.load( guitarMusic, function( buffer ) { ... });
const guitarMusic = require("./public/music.mp3").default;
If we have a directory called "public" with the desired file inside (music or an image or the like), the above code generates a local URL that we can use in app.js:
audioLoader.load( guitarMusic, function( buffer ) { ... });