FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webaudio/src/cpp/channel-splitter-node.cpp at master · node-3d/webaudio · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
node-3d
/
webaudio
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
20
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
webaudio
/
src
/
cpp
/
channel-splitter-node.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
55 lines (33 loc) · 1.02 KB
Breadcrumbs
webaudio
/
src
/
cpp
/
channel-splitter-node.cpp
Copy path
File metadata and controls
55 lines (33 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
include
<
LabSound/LabSound.h
>
#
include
"
channel-splitter-node.hpp
"
#
include
"
common.hpp
"
IMPLEMENT_ES5_CLASS
(ChannelSplitterNode);
void
ChannelSplitterNode::init
(Napi::Env env, Napi::Object exports) {
Napi::Function ctor =
wrap
(env);
JS_ASSIGN_METHOD
(destroy);
JS_ASSIGN_GETTER
(isDestroyed);
exports.
Set
(
"
ChannelSplitterNode
"
, ctor);
}
ChannelSplitterNode::ChannelSplitterNode
(
const
Napi::CallbackInfo &info)
: CommonNode(info.This(), "ChannelSplitterNode") {
NAPI_ENV
;
REQ_OBJ_ARG
(
0
, context);
reset
(context, std::make_shared<lab::ChannelSplitterNode>());
Napi::Value argv[] = {
static_cast
<Napi::Value>(context),
static_cast
<Napi::Value>(
JS_NUM
(
reinterpret_cast
<
size_t
>(&_impl))) };
super
(info,
2
, argv);
}
ChannelSplitterNode::~ChannelSplitterNode
() {
_destroy
();
}
void
ChannelSplitterNode::_destroy
() {
DES_CHECK
;
_isDestroyed =
true
;
CommonNode::_destroy
();
}
JS_IMPLEMENT_METHOD
(ChannelSplitterNode, destroy) {
THIS_CHECK
;
emit
(
"
destroy
"
);
_destroy
();
RET_UNDEFINED
;
}
Back
|
FazBrowse Home
|
New Git URL