Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
ab3d7f29
Unverified
Commit
ab3d7f29
authored
May 25, 2020
by
Rémi Verschelde
Committed by
GitHub
May 25, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39037 from Faless/js/audio_latency
Fix JS audioContext parameters.
parents
78f554a8
57bdb4cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
audio_driver_javascript.cpp
platform/javascript/audio_driver_javascript.cpp
+2
-2
No files found.
platform/javascript/audio_driver_javascript.cpp
View file @
ab3d7f29
...
...
@@ -70,14 +70,14 @@ Error AudioDriverJavaScript::init() {
/* clang-format off */
_driver_id
=
EM_ASM_INT
({
const
MIX_RATE
=
$
0
;
const
LATENCY
=
$
1
;
const
LATENCY
=
$
1
/
1000
;
return
Module
.
IDHandler
.
add
({
'
context
'
:
new
(
window
.
AudioContext
||
window
.
webkitAudioContext
)({
sampleRate
:
MIX_RATE
,
latencyHint
:
LATENCY
}),
'
input
'
:
null
,
'
stream
'
:
null
,
'
script
'
:
null
});
});
}
,
mix_rate
,
latency
);
/* clang-format on */
int
channel_count
=
get_total_channels_by_speaker_mode
(
get_speaker_mode
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment