Skip to content

Instantly share code, notes, and snippets.

View omerbitikcioglu's full-sized avatar
:octocat:
Focusing

öfb omerbitikcioglu

:octocat:
Focusing
  • Istanbul/Turkey
  • 15:17 (UTC +03:00)
View GitHub Profile
@jorgehatccrma
jorgehatccrma / recursive-resample.sh
Last active June 29, 2023 14:48
Recursively resample a bunch of audio files in a directory, using sox
#!/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.
#
@stettberger
stettberger / gdb_trace.py
Created April 9, 2018 13:43
GDB Function Call Trace
# 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)
@ExternPointer
ExternPointer / resampler.c
Last active May 2, 2025 03:17
Simply audio resampler, which allow to work in realtime (resample stream)
/*
* 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>