Skip to content

Instantly share code, notes, and snippets.

@Tiiffi
Tiiffi / easypw.h
Last active November 6, 2025 10:09
easypw – single-header library for quickly starting with PipeWire
/*
* compilation: cc prog.c -o prog $(pkg-config --cflags --libs libpipewire-0.3)
*
* TODO:
* - Error handling!
* - Support for planar formats
* - Allow custom allocator, default to malloc/free
* - Volume adjust?
*
* Adapted by Tiiffi — based on the example at https://docs.pipewire.org/audio-src-ring2_8c-example.html
@Tiiffi
Tiiffi / confparser.c
Last active March 20, 2021 13:34
Simple & naive config parser :-D
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
/* Simple & naive config parser :-D
*
* Features:
* - Inefficient
* - Ugly