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
f6665cdd
Commit
f6665cdd
authored
Mar 03, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the examples readme into the build folder.
parent
b1d4e9a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
examples/README.md
examples/README.md
+0
-22
examples/build/README.md
examples/build/README.md
+17
-0
No files found.
examples/README.md
deleted
100644 → 0
View file @
b1d4e9a0
To compile these examples, cd into the "build" directory and run the applicable build script. Executables
will be placed in the "bin" directory.
cd build
./ma_build_examples_linux
Then you can run executables like this:
../bin/simple_playback my_sound.wav
Emscripten
----------
On Windows, you need to move into the build and run emsdk_env.bat from a command prompt using an absolute
path like "C:
\e
msdk
\e
msdk_env.bat". Note that PowerShell doesn't work for me for some reason. Then, run the
relevant batch file:
ma_build_examples_emscripten.bat
The output will be placed in the bin folder. If you have output WASM it may not work when running the web
page locally. To test you can run with something like this:
emrun ../bin/simple_playback_emscripten.html
\ No newline at end of file
examples/build/README.md
0 → 100644
View file @
f6665cdd
Examples
--------
gcc ../simple_playback.c -o bin/simple_playback -ldl -lpthread -lm
gcc ../simple_playback.c -o bin/simple_playback -ldl -lpthread -lm -Wall -Wextra -Wpedantic -std=c89
Emscripten
----------
On Windows, you need to move into the build and run emsdk_env.bat from a command prompt using an absolute
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 -s WASM=0 -Wall
If you output WASM it may not work when running the web page locally. To test you can run with something
like this:
emrun ./bin/simple_playback_emscripten.html
\ No newline at end of file
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