Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

"files" parameter fails when wildcard or array are used #3

Open
Parka opened this issue Feb 7, 2015 · 2 comments
Open

"files" parameter fails when wildcard or array are used #3

Parka opened this issue Feb 7, 2015 · 2 comments

Comments

@Parka
Copy link

Parka commented Feb 7, 2015

For the following task:

 audiosprite : {
        all : {
            output: "./app/assets/audio/",
            files: "audio/*.wav",
            export: 'm4a,ogg,mp3',
            bitrate: 48,
            silence: 5
        }
    }

This is the output:

Running "audiosprite:all" (audiosprite) task
>> debug:Parsed arguments _=[audio/*.wav], output=./app/assets/audio/, o=./app/assets/audio/, export=m4a,ogg,mp3, e=m4a,ogg,mp3, bitrate=48, b=48, silence=5, s=5, priority=, y=, loop=, u=, log=info, l=info, autoplay=null, a=null, samplerate=44100, r=44100, channels=1, c=1, rawparts=, p=, $0=node c:\xampp\htdocs\gamedev\phaser\test002\node_modules\grunt-audiosprite\node_modules\cloudkid-audiosprite\audiosprite.js
>> debug:Created temporary file file=C:\Users\parka\AppData\Local\Temp\audiosprite.7499742431100458
>> debug:Spawn cmd=ffmpeg -version
info: Silence gap added duration=6
>> debug:Start processing file=audio/*.wav

>> Exited with code: 1.

Warning: Task "audiosprite:all" failed. Use --force to continue.

Using:

files: ["audio/*.wav"]

Returns:

Running "audiosprite:all" (audiosprite) task
Warning: Cannot use 'in' operator to search for 'src' in audio/*.wav Use --force to continue.

Aborted due to warnings.

This works ok:

files: "audio/interface6.wav audio/metal-ringing.wav audio/swing.wav"

I don't know how relevant it could be but upon installation of audiosprite I get the following warnings (I'm sorry for the image, idk how to dump that log):
audiosprite installation

Additional data:
Windows 8
Node v0.10.31

@stevebma
Copy link

I have this on windows only, on linux the wildcards work fine.

@GMartigny
Copy link

GMartigny commented Feb 1, 2018

Had it on Linux

error:
Warning: Cannot use 'in' operator to search for 'src' in src/audio/**/*.wav

options:

audiosprite: {
        main: {
            files: ["src/audio/**/*.wav"],
            output: "dist/audio/",
            export: "ogg",
            ogg_to_oga: true
        }
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants