ref: 368797e42ee8a84793eb2af07e4067fa3ba4f576
parent: ab4281b3a6bd6edb7f4d071a88aa7ec67b7ab5e4
author: lieff <lieff@users.noreply.github.com>
date: Fri Jan 12 11:15:51 EST 2018
update doc
--- a/README.md
+++ b/README.md
@@ -54,11 +54,15 @@
## Usage
-Firstly we need initialize decoder structure:
+Firstly we need to initialize decoder structure:
```
+#define MINIMP3_IMPLEMENTATION
+#include "minimp3.h"
+...
static mp3dec_t mp3d;
mp3dec_init(&mp3d);
```
+Note that MINIMP3_IMPLEMENTATION define must be present in one c/cpp file, while minimp3.h can be included in multiple files.
Then we decode input stream frame-by-frame:
```
/*typedef struct