cloudkidstudio / grunt-audiosprite Goto Github PK
View Code? Open in Web Editor NEWGrunt plugin for audiosprite utility
License: MIT License
Grunt plugin for audiosprite utility
License: MIT License
Encountered on MacOSX - it appears that the line endings in the repo version are of 'windows' standard. Resolved by changing line endings of the following files:
node_modules/audiosprite/audiosprite.js
node_modules/grunt-audiosprite/tasks/grunt-audiosprite.js
node_modules/audiosprite/cli.js
...to 'unix' (in SublimeText: View -> Line Endings), and saving file as encoding 'UTF-8'.
In order to use the native FFmpeg AAC encoder, an additional argument must be passed to
the command line of FFmpeg when transcoding the raw audio file to .m4a file format.
The command line would have to look something like this:
ffmpeg -y -ac 1 -f s16le -i RAW_TEMP_FILE -strict experimental -ab 48k OUTPUT.m4a
This is an issue with the audiosprite utility in your repository. But I can't open new issues there.
I haven't tested if that has any negative side-effects when not using the native AAC encoder because
that's not available to me.
cmd = [__dirname + '/../node_modules/.bin/audiosprite']
Returns 'No file or directory' on linux, should be cmd = [__dirname + '/../../../node_modules/.bin/audiosprite']
this will evaluate to be true at all times:
ogg_to_oga = data.ogg_to_oga || true,
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):
Additional data:
Windows 8
Node v0.10.31
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.