Skip to content

Instantly share code, notes, and snippets.

View ommos61's full-sized avatar

Martin Smits ommos61

View GitHub Profile
@ommos61
ommos61 / use_minimp3.c
Last active January 6, 2025 16:08
Simple example of how to use basic functions of minimp3 header only library to decode an mp3 file
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MINIMP3_ONLY_MP3
#define MINIMP3_NO_SIMD
#define MINIMP3_IMPLEMENTATION
#include "minimp3.h"
void readFile(const char *filename, uint64_t *size, uint8_t **data) {