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
| /* | |
| * 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 |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <stdlib.h> | |
| /* Simple & naive config parser :-D | |
| * | |
| * Features: | |
| * - Inefficient | |
| * - Ugly |