diff --git a/README.md b/README.md index 47a65ce..ecd4c11 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,7 @@ https://github.com/rochars/wavefile [![Codecov](https://img.shields.io/codecov/c/github/rochars/wavefile.svg?style=flat-square)](https://codecov.io/gh/rochars/wavefile) [![Unix Build](https://img.shields.io/travis/rochars/wavefile.svg?style=flat-square)](https://travis-ci.org/rochars/wavefile) [![Windows Build](https://img.shields.io/appveyor/ci/rochars/wavefile.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/rochars/wavefile) [![Scrutinizer](https://img.shields.io/scrutinizer/g/rochars/wavefile.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/rochars/wavefile/) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1880/badge)](https://bestpractices.coreinfrastructure.org/projects/1880) -## Notice -My country, Brazil, is under a fascist government that is hunting and killing its opponents. I've been threatened too. - +# wavefile Create, read and write wav files according to the specs. diff --git a/bin/wavefile.js b/bin/wavefile.js old mode 100644 new mode 100755 index f861927..9223b65 --- a/bin/wavefile.js +++ b/bin/wavefile.js @@ -67,6 +67,9 @@ const help = " Usage:\n" + " --list-cue Ex: wavefile input.wav --list-cue\n" + " Print all the cue points of the file.\n" + "\n" + + " --list-smpl Ex: wavefile input.wav --list-smpl\n" + + " Print all the sample chunks from the file.\n" + + "\n" + " --bits Ex: wavefile input.wav --bits\n" + " Print the bit depth of the file.\n" + "\n" + @@ -157,6 +160,9 @@ for (let command in commands) { // --list-cue } else if (command == '--list-cue') { console.log(wav.listCuePoints()); + // --list-smpl +} else if (command == '--list-smpl') { + console.log(wav.smpl); // --bits } else if (command == '--bits') { if (wav.fmt.validBitsPerSample) {