1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-01 17:03:38 +00:00
This commit is contained in:
MatteZ02
2019-10-10 16:43:04 +03:00
parent 6f6ac8a6fa
commit 50b9bed483
9432 changed files with 1988816 additions and 167 deletions

32
node_modules/node-opus/.appveyor.yml generated vendored Normal file
View File

@ -0,0 +1,32 @@
environment:
matrix:
- nodejs_version: Current
platform: x64
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- set CI=true
- npm install --global npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- npm install -g gulp istanbul codeclimate-test-reporter
- npm install ogg-packet
matrix:
fast_finish: true
# Disable automatic builds
build: off
# Do not build on gh tags
skip_tags: true
shallow_clone: true
test_script:
- node --version
- npm --version
- npm test
cache:
- '%APPDATA%\npm-cache'
- node_modules -> package.json

2
node_modules/node-opus/.gitattributes generated vendored Normal file
View File

@ -0,0 +1,2 @@
*.raw binary
*.opus binary

21
node_modules/node-opus/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2013 Mikko Rantanen
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.

57
node_modules/node-opus/README.md generated vendored Normal file
View File

@ -0,0 +1,57 @@
node-opus
=========
### NodeJS native bindings to libopus
This module implements bindings for Opus v1.1 for Node.js.
```js
var opus = require('node-opus');
// Create the encoder.
// Specify 48kHz sampling rate and 10ms frame size.
// NOTE: The decoder must use the same values when decoding the packets.
var rate = 48000;
var encoder = new opus.OpusEncoder( rate );
// Encode and decode.
var frame_size = rate/100;
var encoded = encoder.encode( buffer, frame_size );
var decoded = encoder.decode( encoded, frame_size );
// or create streams
var channels = 2;
var opusEncodeStream = new opus.Encoder(rate, channels, frame_size);
var opusDecodeStream = new opus.Decoder(rate, channels, frame_size);
// see examples folder for a more complete example
```
Platform support
----------------
Supported platforms:
- Linux x64 & ia32
- Linux ARM (Raspberry Pi 1 & 2)
- Linux ARM64 (Raspberry Pi 3)
- Mac OS X x64
- Windows x64
Add new supported platforms by running ./autogen.sh and ./configure in
deps/opus and copying the resulting config.h to deps/config/opus/[os]/[arch].
Use the following flags with configure:
./configure --enable-static --disable-shared --with-pic
On a clean debian-based system, the full flow looks approximately like:
sudo apt-get update
sudo apt-get install autoconf
sudo apt-get install libtool
cd deps/opus
./autogen.sh
./configure --enable-static --disable-shared --with-pic
mkdir -p ../config/opus/[os]/[arch]
cp config.h ../config/opus/[os]/[arch]
And, then, the last step is to add the OS/Arch to `package.json`.

50
node_modules/node-opus/bin/opusdec-js.js generated vendored Normal file
View File

@ -0,0 +1,50 @@
#!/usr/bin/env node
"use strict";
var opus = require('../');
var ogg = require('ogg');
var fs = require('fs');
var program = require('commander');
var packagejson = require('../package.json');
function toInt( n ) { return parseInt( n ); }
program
.version( packagejson.version )
.option('--bitrate [N.nnn]',
'Set target bitrate in kbit/sec (6-256 per channel, default: 64)',
toInt, 64 )
.option('--rate [N]',
'Set sampling rate for raw input (default: 48000)',
toInt, 48000 )
.option('--channels [N]',
'Set sampling channels for raw input (default: 2)',
toInt, 48000 )
.arguments( '<input> <output>' )
.parse( process.argv );
if( program.args.length !== 2 )
program.help();
// Open the output streams.
var input_raw = fs.createReadStream( program.args[ 0 ] );
var output = fs.createWriteStream( program.args[ 1 ] );
var oggDecoder = new ogg.Decoder();
oggDecoder.on( 'stream', function( stream ) {
// Create the decoder based on the command parameters.
var decoder = new opus.Decoder( program.rate, program.channels );
decoder.on( 'format', function( format ) {
decoder.pipe( output );
});
decoder.on( 'error', function( err ) {
console.error( err );
});
stream.pipe( decoder );
});
input_raw.pipe( oggDecoder )

43
node_modules/node-opus/bin/opusenc-js.js generated vendored Normal file
View File

@ -0,0 +1,43 @@
#!/usr/bin/env node
"use strict";
var opus = require('../');
var ogg = require('ogg');
var fs = require('fs');
var program = require('commander');
var packagejson = require('../package.json');
function toInt( n ) { return parseInt( n ); }
program
.version( packagejson.version )
.option('--serial [serialno]',
'Set the serial number for the stream instead of using random. Meant for debugging.',
toInt, null )
.option('--framesize [size]',
'Set maximum frame size in milliseconds (2.5, 5, 10, 20, 40, 60, default: 20)',
toInt, 20 )
.option('--raw-rate [N]',
'Set sampling rate for raw input (default: 48000)',
toInt, 48000 )
.option('--raw-chan [N]',
'Set number of channels for raw input (default: 2)',
toInt, 2 )
.arguments( '<input> <output>' )
.parse( process.argv );
if( program.args.length !== 2 )
program.help();
// Create the encoder based on the command parameters.
var framebytes = program.rawRate * program.framesize / 1000;
var encoder = new opus.Encoder( program.rawRate, program.rawChan, framebytes );
// Open the output streams.
var input_raw = fs.createReadStream( program.args[ 0 ] );
var output = fs.createWriteStream( program.args[ 1 ] );
var oggEncoder = new ogg.Encoder();
input_raw.pipe( encoder ).pipe( oggEncoder.stream( program.serial ) )
oggEncoder.pipe( output )

54
node_modules/node-opus/binding.gyp generated vendored Normal file
View File

@ -0,0 +1,54 @@
# Test
{
'variables': {
},
'targets': [
{
'target_name': 'node-opus',
'dependencies': [
'deps/binding.gyp:libopus'
],
'cflags': [
'-pthread',
'-fno-exceptions',
'-fno-strict-aliasing',
'-Wall',
'-Wno-unused-parameter',
'-Wno-missing-field-initializers',
'-Wextra',
'-pipe',
'-fno-ident',
'-fdata-sections',
'-ffunction-sections',
'-fPIC'
],
'defines': [
'LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
'WEBRTC_TARGET_PC',
'WEBRTC_LINUX',
'WEBRTC_THREAD_RR',
'EXPAT_RELATIVE_PATH',
'GTEST_RELATIVE_PATH',
'JSONCPP_RELATIVE_PATH',
'WEBRTC_RELATIVE_PATH',
'POSIX',
'__STDC_FORMAT_MACROS',
'DYNAMIC_ANNOTATIONS_ENABLED=0'
],
'include_dirs': [
"<!(node -e \"require('nan')\")"
],
'sources': [
'src/node-opus.cc',
],
'link_settings': {
'ldflags': [
],
'libraries': [
]
}
}
]
}

BIN
node_modules/node-opus/build/Release/libopus.lib generated vendored Normal file

Binary file not shown.

BIN
node_modules/node-opus/build/Release/node-opus.exp generated vendored Normal file

Binary file not shown.

BIN
node_modules/node-opus/build/Release/node-opus.iobj generated vendored Normal file

Binary file not shown.

BIN
node_modules/node-opus/build/Release/node-opus.ipdb generated vendored Normal file

Binary file not shown.

BIN
node_modules/node-opus/build/Release/node-opus.lib generated vendored Normal file

Binary file not shown.

4921
node_modules/node-opus/build/Release/node-opus.map generated vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
node_modules/node-opus/build/Release/node-opus.node generated vendored Normal file

Binary file not shown.

BIN
node_modules/node-opus/build/Release/node-opus.pdb generated vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native64Bit:WindowsTargetPlatformVersion=10.0.17763.0
Release|x64|C:\Users\matia\Documents\GitHub\FutoX-Musix\node_modules\node-opus\build\|

Binary file not shown.

33
node_modules/node-opus/build/binding.sln generated vendored Normal file
View File

@ -0,0 +1,33 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2015
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "(deps)", "..\deps", "{01DF18E8-89C6-A25E-0006-40F7C4BCED1B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libopus", "deps\libopus.vcxproj", "{83DFD89B-081C-FB34-06DD-0C7E3CA02956}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "node-opus", "node-opus.vcxproj", "{ECBCF9C6-3CE1-F8BB-72BD-BD687A6E047A}"
ProjectSection(ProjectDependencies) = postProject
{83DFD89B-081C-FB34-06DD-0C7E3CA02956} = {83DFD89B-081C-FB34-06DD-0C7E3CA02956}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{83DFD89B-081C-FB34-06DD-0C7E3CA02956}.Debug|x64.ActiveCfg = Debug|x64
{83DFD89B-081C-FB34-06DD-0C7E3CA02956}.Debug|x64.Build.0 = Debug|x64
{83DFD89B-081C-FB34-06DD-0C7E3CA02956}.Release|x64.ActiveCfg = Release|x64
{83DFD89B-081C-FB34-06DD-0C7E3CA02956}.Release|x64.Build.0 = Release|x64
{ECBCF9C6-3CE1-F8BB-72BD-BD687A6E047A}.Debug|x64.ActiveCfg = Debug|x64
{ECBCF9C6-3CE1-F8BB-72BD-BD687A6E047A}.Debug|x64.Build.0 = Debug|x64
{ECBCF9C6-3CE1-F8BB-72BD-BD687A6E047A}.Release|x64.ActiveCfg = Release|x64
{ECBCF9C6-3CE1-F8BB-72BD-BD687A6E047A}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{83DFD89B-081C-FB34-06DD-0C7E3CA02956} = {01DF18E8-89C6-A25E-0006-40F7C4BCED1B}
EndGlobalSection
EndGlobal

196
node_modules/node-opus/build/config.gypi generated vendored Normal file
View File

@ -0,0 +1,196 @@
# Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17763.0"
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_nghttp2": "false",
"enable_lto": "false",
"enable_pgo_generate": "false",
"enable_pgo_use": "false",
"force_dynamic_crt": 0,
"host_arch": "x64",
"icu_data_in": "..\\..\\deps/icu-small\\source/data/in\\icudt62l.dat",
"icu_endianness": "l",
"icu_gyp_path": "tools/icu/icu-generic.gyp",
"icu_locales": "en,root",
"icu_path": "deps/icu-small",
"icu_small": "true",
"icu_ver_major": "62",
"nasm_version": "2.14",
"node_byteorder": "little",
"node_debug_lib": "false",
"node_enable_d8": "false",
"node_enable_v8_vtunejit": "false",
"node_install_npm": "true",
"node_module_version": 64,
"node_no_browser_globals": "false",
"node_prefix": "/usr/local",
"node_release_urlbase": "https://nodejs.org/download/release/",
"node_shared": "false",
"node_shared_cares": "false",
"node_shared_http_parser": "false",
"node_shared_libuv": "false",
"node_shared_nghttp2": "false",
"node_shared_openssl": "false",
"node_shared_zlib": "false",
"node_tag": "",
"node_target_type": "executable",
"node_use_bundled_v8": "true",
"node_use_dtrace": "false",
"node_use_etw": "true",
"node_use_large_pages": "false",
"node_use_openssl": "true",
"node_use_pch": "false",
"node_use_perfctr": "true",
"node_use_v8_platform": "true",
"node_with_ltcg": "true",
"node_without_node_options": "false",
"openssl_fips": "",
"openssl_no_asm": 0,
"shlib_suffix": "so.64",
"target_arch": "x64",
"v8_enable_gdbjit": 0,
"v8_enable_i18n_support": 1,
"v8_enable_inspector": 1,
"v8_no_strict_aliasing": 1,
"v8_optimized_debug": 0,
"v8_promise_internal_field_count": 1,
"v8_random_seed": 0,
"v8_trace_maps": 0,
"v8_typed_array_max_size_in_heap": 0,
"v8_use_snapshot": "true",
"want_separate_host_toolset": 0,
"nodedir": "C:\\Users\\matia\\.node-gyp\\10.15.3",
"standalone_static_library": 1,
"msbuild_path": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe",
"access": "",
"allow_same_version": "",
"also": "",
"always_auth": "",
"audit": "true",
"audit_level": "low",
"auth_type": "legacy",
"bin_links": "true",
"browser": "",
"ca": "",
"cache": "C:\\Users\\matia\\AppData\\Roaming\\npm-cache",
"cache_lock_retries": "10",
"cache_lock_stale": "60000",
"cache_lock_wait": "10000",
"cache_max": "Infinity",
"cache_min": "10",
"cert": "",
"cidr": "",
"color": "true",
"commit_hooks": "true",
"depth": "Infinity",
"description": "true",
"dev": "",
"dry_run": "",
"editor": "notepad.exe",
"engine_strict": "",
"fetch_retries": "2",
"fetch_retry_factor": "10",
"fetch_retry_maxtimeout": "60000",
"fetch_retry_mintimeout": "10000",
"force": "",
"git": "git",
"git_tag_version": "true",
"global": "",
"globalconfig": "C:\\Users\\matia\\AppData\\Roaming\\npm\\etc\\npmrc",
"globalignorefile": "C:\\Users\\matia\\AppData\\Roaming\\npm\\etc\\npmignore",
"global_style": "",
"group": "",
"ham_it_up": "",
"heading": "npm",
"https_proxy": "",
"if_present": "",
"ignore_prepublish": "",
"ignore_scripts": "",
"init_author_email": "",
"init_author_name": "",
"init_author_url": "",
"init_license": "ISC",
"init_module": "C:\\Users\\matia\\.npm-init.js",
"init_version": "1.0.0",
"json": "",
"key": "",
"legacy_bundling": "",
"link": "",
"local_address": "",
"logs_max": "10",
"long": "",
"maxsockets": "50",
"message": "%s",
"metrics_registry": "https://registry.npmjs.org/",
"node_gyp": "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",
"node_options": "",
"node_version": "10.15.3",
"noproxy": "",
"offline": "",
"onload_script": "",
"only": "",
"optional": "true",
"otp": "",
"package_lock": "true",
"package_lock_only": "",
"parseable": "",
"prefer_offline": "",
"prefer_online": "",
"prefix": "C:\\Users\\matia\\AppData\\Roaming\\npm",
"preid": "",
"production": "",
"progress": "true",
"read_only": "",
"rebuild_bundle": "true",
"registry": "https://registry.npmjs.org/",
"rollback": "true",
"save": "true",
"save_bundle": "",
"save_dev": "",
"save_exact": "",
"save_optional": "",
"save_prefix": "^",
"save_prod": "",
"scope": "",
"scripts_prepend_node_path": "warn-only",
"script_shell": "",
"searchexclude": "",
"searchlimit": "20",
"searchopts": "",
"searchstaleness": "900",
"send_metrics": "",
"shell": "C:\\WINDOWS\\system32\\cmd.exe",
"shrinkwrap": "true",
"sign_git_commit": "",
"sign_git_tag": "",
"sso_poll_frequency": "500",
"sso_type": "oauth",
"strict_ssl": "true",
"tag": "latest",
"tag_version_prefix": "v",
"timing": "",
"tmp": "C:\\Users\\matia\\AppData\\Local\\Temp",
"umask": "0000",
"unicode": "",
"unsafe_perm": "true",
"update_notifier": "true",
"usage": "",
"user": "",
"userconfig": "C:\\Users\\matia\\.npmrc",
"user_agent": "npm/6.4.1 node/v10.15.3 win32 x64",
"version": "",
"versions": "",
"viewer": "browser"
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More