1.0.5 • Published 2 years ago

mdac v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Mac Desktop Audio Capture

Setup

# Install MacOSX<version>.sdk and clang
xcode-select --install
# nodejs and cmake-js tools
brew install nodejs pnpm cmake ninja
# also compatible with npm/yarn
pnpm install

Building

# this will automatically build the addon in Release mode
pnpm install
# you can also build in Release mode using this task
pnpm build
# build in Debug mode
pnpm build:dev

Adding as a dependency

Use "mdac": "git+ssh://git@github.com:fs4k/synth-mdac.git" to use this package as a dependency. It will be automatically built on installing. Any issue with webpack or electron should be due to the addon binary and/or resolving paths

Logging

The PLOG_LEVEL level controls the logging severity of the addon. It is info by default.

# all the available levels
# it is case insensitive
# only the first letter is significant (you can skip the rest)
export PLOG_LEVEL=verbose
export PLOG_LEVEL=debug
export PLOG_LEVEL=info # default
export PLOG_LEVEL=warning
export PLOG_LEVEL=error
export PLOG_LEVEL=fatal

Examples

Are in the tests folder

pnpm test:rms
pnpm test:electron
pnpm test:cmake