History

update doc

lieff committed 8 years ago

Commit 368797e1 parent ab4281b1 file · +5 −1Browse files

Unified · Split

README.md+5−1
@@ -54,11 +54,15 @@ Keyj minimp3 conformance test fails on all vectors (PSNR < 96db), free format is · 53 unmodified lines
5454
5555 ## Usage
5656
57−Firstly we need initialize decoder structure:
57+Firstly we need to initialize decoder structure:
5858 ```
59+#define MINIMP3_IMPLEMENTATION
60+#include "minimp3.h"
61+...
5962 static mp3dec_t mp3d;
6063 mp3dec_init(&mp3d);
6164 ```
65+Note that MINIMP3_IMPLEMENTATION define must be present in one c/cpp file, while minimp3.h can be included in multiple files.
6266 Then we decode input stream frame-by-frame:
6367 ```
6468 /*typedef struct

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t