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
54 54
55## Usage55## Usage
56 56
57Firstly we need initialize decoder structure:57Firstly we need to initialize decoder structure:
58```58```
59#define MINIMP3_IMPLEMENTATION
60#include "minimp3.h"
61...
59 static mp3dec_t mp3d;62 static mp3dec_t mp3d;
60 mp3dec_init(&mp3d);63 mp3dec_init(&mp3d);
61```64```
65Note that MINIMP3_IMPLEMENTATION define must be present in one c/cpp file, while minimp3.h can be included in multiple files.
62Then we decode input stream frame-by-frame:66Then we decode input stream frame-by-frame:
63```67```
64 /*typedef struct68 /*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