forked from TooTallNate/node-vorbis
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (23 loc) · 678 Bytes
/
index.js
File metadata and controls
33 lines (23 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Module dependencies.
*/
var binding = require('./lib/binding');
/**
* libvorbis version string.
*/
exports.version = binding.version;
/**
* Async function that checks if the given `ogg_packet` is Vorbis data. The packet
* must be the first packet in the ogg stream.
*/
exports.isVorbis = binding.vorbis_synthesis_idheader;
/**
* The `Decoder` class. Write `ogg_packet`s to it and it will output
* raw PCM float data.
*/
exports.Decoder = require('./lib/decoder');
/**
* The `Encoder` class. Write raw PCM float data to it and it'll produce
* `ogg_packet`s that you can weld into an ogg.Encoder stream.
*/
exports.Encoder = require('./lib/encoder');