This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # A simple script to recursively resample a bunch of files | |
| # in a directory. Only certain file extensions (mp3, aac, | |
| # flac, wav) are considered. | |
| # | |
| # It takes 2 command line options: `indir` and `outdir`. | |
| # The destination (`outdir`) is relative to the current | |
| # directory of where you were when the script was run. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example Invocation: | |
| # | |
| # gcc test.c -o test -g | |
| # TRACE_FUNCTIONS=fib TRACE_FILE=log gdb -x gdb_trace.py test | |
| # cat log | |
| # | |
| # Log File Format: | |
| # | |
| # ('call', Parent Call ID, Call ID, Breakpoint Name, Symbol Name, Arguments) | |
| # ('return', Call Id, Breakpoint Name, Return Value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File format: raw, PCM s16le | |
| * Resample 44100 Hz ./audio.raw to 16000 Hz ./audio_resampled.raw: | |
| * gcc -g resampler.c -o resampler | |
| * ./resampler | |
| */ | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <memory.h> |