Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
000180ba
Commit
000180ba
authored
Mar 07, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence a warning on the Emscripten build.
parent
869a6ec6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
examples/build/README.md
examples/build/README.md
+1
-1
miniaudio.h
miniaudio.h
+1
-0
No files found.
examples/build/README.md
View file @
000180ba
...
@@ -9,7 +9,7 @@ On Windows, you need to move into the build and run emsdk_env.bat from a command
...
@@ -9,7 +9,7 @@ On Windows, you need to move into the build and run emsdk_env.bat from a command
path like "C:
\e
msdk
\e
msdk_env.bat". Note that PowerShell doesn't work for me for some reason. Examples:
path like "C:
\e
msdk
\e
msdk_env.bat". Note that PowerShell doesn't work for me for some reason. Examples:
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -s WASM=0 -Wall
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -s WASM=0 -Wall
-Wextra
If you output WASM it may not work when running the web page locally. To test you can run with something
If you output WASM it may not work when running the web page locally. To test you can run with something
like this:
like this:
...
...
miniaudio.h
View file @
000180ba
...
@@ -28680,6 +28680,7 @@ static ma_result ma_context_get_device_info__webaudio(ma_context* pContext, ma_d
...
@@ -28680,6 +28680,7 @@ static ma_result ma_context_get_device_info__webaudio(ma_context* pContext, ma_d
MA_ZERO_MEMORY(pDeviceInfo->id.webaudio, sizeof(pDeviceInfo->id.webaudio));
MA_ZERO_MEMORY(pDeviceInfo->id.webaudio, sizeof(pDeviceInfo->id.webaudio));
/* Only supporting default devices for now. */
/* Only supporting default devices for now. */
(void)pDeviceID;
if (deviceType == ma_device_type_playback) {
if (deviceType == ma_device_type_playback) {
ma_strncpy_s(pDeviceInfo->name, sizeof(pDeviceInfo->name), MA_DEFAULT_PLAYBACK_DEVICE_NAME, (size_t)-1);
ma_strncpy_s(pDeviceInfo->name, sizeof(pDeviceInfo->name), MA_DEFAULT_PLAYBACK_DEVICE_NAME, (size_t)-1);
} else {
} else {
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