mattcolman / phaser-manifest-loader

Phaser Manifest Loader
http://mattcolman.com/labs/phaser-manifest-loader/index.html
MIT License
30 stars 7 forks source link

Error loading MP3 files #7

Open jjwallace opened 6 years ago

jjwallace commented 6 years ago

All files are located in the audio folder but we find: phaser-manifest-loader: could not find audio with key : ball_hit.mp3 warn @ AssetLoader.js:20 loadAudio @ AssetLoader.js:92 (anonymous) @ AssetLoader.js:61 (anonymous) @ AssetLoader.js:60 (anonymous) @ AssetLoader.js:57 loadManifest @ AssetLoader.js:56 (anonymous) @ ManifestLoader.js:60 _loadAssets @ ManifestLoader.js:58 loadManifest @ ManifestLoader.js:51 create @ preload.state.js:11 loadComplete @ phaser-split.js:8607 preUpdate @ phaser-split.js:8362 updateLogic @ phaser-split.js:15701 update @ phaser-split.js:15643 updateRAF @ phaser-split.js:45075 _onLoop @ phaser-split.js:45057 requestAnimationFrame (async) updateRAF @ phaser-split.js:45077 _onLoop @ phaser-split.js:45057 requestAnimationFrame (async) start @ phaser-split.js:45060 (anonymous) @ phaser-split.js:15349 execute @ phaser-split.js:9488 dispatch @ phaser-split.js:9286 _ready @ phaser-split.js:56446 _checkReady @ phaser-split.js:56431 _removePending @ phaser-split.js:56416 img.onload @ phaser-split.js:54492 load (async) addImageAsync @ phaser-split.js:54489 addMissingImage @ phaser-split.js:54536 _addImages @ phaser-split.js:56369 Phaser.Cache @ phaser-split.js:54218 boot @ phaser-split.js:15289 Phaser.Device._readyCheck @ phaser-split.js:43842 AssetLoader.js:20 phaser-manifest-loader: could not find audio with key : boom.mp3

Trying to access client?cd17:153 ./src/assets/audio/hit_block.mp3 Module parse failed: Unexpected character '' (1:3) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file) @ ./src/assets .*\.png|json|ttf|woff|woff2|xml|mp3|jpg$ @ ./src/states/preload.state.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js warnings @ client?cd17:153 onmessage @ socket.js:41 EventTarget.dispatchEvent @ sockjs.js:170 (anonymous) @ sockjs.js:883 SockJS._transportMessage @ sockjs.js:881 EventEmitter.emit @ sockjs.js:86 WebSocketTransport.ws.onmessage @ sockjs.js:2957 client?cd17:153 ./src/assets/audio/boom.mp3 Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file) @ ./src/assets .*\.png|json|ttf|woff|woff2|xml|mp3|jpg$ @ ./src/states/preload.state.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js warnings @ client?cd17:153 onmessage @ socket.js:41 EventTarget.dispatchEvent @ sockjs.js:170 (anonymous) @ sockjs.js:883 SockJS._transportMessage @ sockjs.js:881 EventEmitter.emit @ sockjs.js:86 WebSocketTransport.ws.onmessage @ sockjs.js:2957 client?cd17:153 ./src/assets/audio/hit_ball.mp3 Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file) @ ./src/assets .*\.png|json|ttf|woff|woff2|xml|mp3|jpg$ @ ./src/states/preload.state.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js

mattcolman commented 6 years ago

not sure what the issue is from these logs. Can you provide a repo to replicate the issue?