shithub: mp3dec

Download patch

ref: 5ed200f66e308a5335b227ffbc3d2d947a56f767
parent: 90ec92fb8af05bc0f946a0f4eae23fdb40df3c31
author: lieff <lieff@users.noreply.github.com>
date: Fri Aug 3 19:34:20 EDT 2018

readme: add callback prototype

--- a/README.md
+++ b/README.md
@@ -162,6 +162,8 @@
     int channels, hz, layer, avg_bitrate_kbps;
 } mp3dec_file_info_t;
 
+typedef int (*MP3D_ITERATE_CB)(void *user_data, const uint8_t *frame, int frame_size, size_t offset, mp3dec_frame_info_t *info);
+
 /* decode whole buffer block */
 void mp3dec_load_buf(mp3dec_t *dec, const uint8_t *buf, size_t buf_size, mp3dec_file_info_t *info);
 /* iterate through frames with optional decoding */