1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 01:16:00 +00:00
This commit is contained in:
MatteZ02
2020-03-03 22:30:50 +02:00
parent edfcc6f474
commit 30022c7634
11800 changed files with 1984416 additions and 1 deletions

21
node_modules/ogg-packet/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Nathan Rajlich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

70
node_modules/ogg-packet/README.md generated vendored Normal file
View File

@ -0,0 +1,70 @@
node-ogg-packet
===============
### Manually construct `ogg_packet` struct instances
This module lets you construct your own `ogg_packet` struct instances using
JavaScript and Buffers. You'll most likely not need to use this module for any
practical purposes, but it is useful for testing purposes.
The more common way to get _proper_ `ogg_packet` structs is via a decoded OGG file
and node-ogg's `ogg.Decoder` class, or one of the codec's encoder classes like
node-vorbis' `vorbis.Encoder` class.
Installation
------------
``` bash
$ npm install ogg-packet
```
Example
-------
``` javascript
var ogg_packet = require('ogg-packet');
// create an `ogg_packet` struct instance
var packet = new ogg_packet();
// the contents of the "packet"
var buf = new Buffer('hello world');
packet.packet = buf;
packet.bytes = buf.length;
// this will be the first packet in the ogg stream
packet.b_o_s = 1;
// there will be more `ogg_packet`s after this one in the ogg stream
packet.e_o_s = 0;
// the "granulepos" is a time-constant value used by the codec decoder
packet.granulepos = 12345;
// the "packetno" should increment by one for each packet in the ogg stream
packet.packetno = 0;
// now send the packet off to an `ogg.Encoder` or
// a codec-specific decoder like `vorbis.Decoder`...
stream.packetin(packet.buffer, function (err) { /* ... */ });
```
API
---
### ogg_packet class
A `ref-struct` class that mirrors the `ogg_packet` fields in the `ogg.h` file.
``` c
typedef struct {
unsigned char *packet;
long bytes;
long b_o_s;
long e_o_s;
ogg_int64_t granulepos;
ogg_int64_t packetno;
} ogg_packet;
```

35
node_modules/ogg-packet/index.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
/**
* Module dependencies.
*/
var Struct = require('ref-struct');
/**
* `ogg_packet` is used to encapsulate the data and metadata belonging
* to a single raw Ogg/Vorbis packet.
*
* typedef struct {
* unsigned char *packet;
* long bytes;
* long b_o_s;
* long e_o_s;
*
* ogg_int64_t granulepos;
*
* ogg_int64_t packetno; sequence number for decode; the framing
* knows where there's a hole in the data,
* but we need coupling so that the codec
* (which is in a separate abstraction
* layer) also knows about the gap
* } ogg_packet;
*/
module.exports = Struct({
packet: 'uchar *',
bytes: 'long',
b_o_s: 'long',
e_o_s: 'long',
granulepos: 'int64',
packetno: 'int64'
});

55
node_modules/ogg-packet/package.json generated vendored Normal file
View File

@ -0,0 +1,55 @@
{
"_from": "ogg-packet@^1.0.0",
"_id": "ogg-packet@1.0.1",
"_inBundle": false,
"_integrity": "sha512-dW1ok3BMnMikyXGDIgVEckWnlViW8JLWQV4qj9aN/rNRVqHlDYSlcIEtSIMH7tpuUOiIxAhY3+OxNdIOm6s17A==",
"_location": "/ogg-packet",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "ogg-packet@^1.0.0",
"name": "ogg-packet",
"escapedName": "ogg-packet",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/node-opus"
],
"_resolved": "https://registry.npmjs.org/ogg-packet/-/ogg-packet-1.0.1.tgz",
"_shasum": "6b7d6c7a743c5f1ae9277c3b1271cac256af4785",
"_spec": "ogg-packet@^1.0.0",
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix-V3\\node_modules\\node-opus",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://tootallnate.net"
},
"bugs": {
"url": "https://github.com/TooTallNate/node-ogg-packet/issues"
},
"bundleDependencies": false,
"dependencies": {
"ref-struct": "*"
},
"deprecated": false,
"description": "Manually construct `ogg_packet` struct instances",
"homepage": "https://github.com/TooTallNate/node-ogg-packet#readme",
"keywords": [
"ogg",
"libogg",
"packet",
"ogg_packet",
"struct"
],
"license": "MIT",
"main": "./index.js",
"name": "ogg-packet",
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/node-ogg-packet.git"
},
"version": "1.0.1"
}