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
5dafa54f
Commit
5dafa54f
authored
May 25, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Tau instead of 2*pi.
parent
20e48137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mini_al.h
mini_al.h
+7
-1
No files found.
mini_al.h
View file @
5dafa54f
...
...
@@ -2708,6 +2708,12 @@ static MAL_INLINE mal_bool32 mal_has_neon()
#ifndef MAL_PI_D
#define MAL_PI_D 3.14159265358979323846264
#endif
#ifndef MAL_TAU
#define MAL_TAU 6.28318530717958647693f
#endif
#ifndef MAL_TAU_D
#define MAL_TAU_D 6.28318530717958647693
#endif
// Unfortunately using runtime linking for pthreads causes problems. This has occurred for me when testing on FreeBSD. When
// using runtime linking, deadlocks can occur (for me it happens when loading data from fread()). It turns out that doing
...
...
@@ -22484,7 +22490,7 @@ mal_result mal_sine_wave_init(double amplitude, double periodsPerSecond, mal_uin
pSineWave->amplitude = amplitude;
pSineWave->periodsPerSecond = periodsPerSecond;
pSineWave->delta = MAL_
PI_D*2
/ sampleRate;
pSineWave->delta = MAL_
TAU_D
/ sampleRate;
pSineWave->time = 0;
return MAL_SUCCESS;
...
...
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