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
b3bc6723
Commit
b3bc6723
authored
Dec 03, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/mackron/miniaudio
into dev
parents
4ebfb458
61c87735
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
CONTRIBUTING.md
CONTRIBUTING.md
+1
-1
research/miniaudio_engine.h
research/miniaudio_engine.h
+10
-0
No files found.
CONTRIBUTING.md
View file @
b3bc6723
...
@@ -75,7 +75,7 @@ incur the cost of maintaining build systems in miniaudio.
...
@@ -75,7 +75,7 @@ incur the cost of maintaining build systems in miniaudio.
### "Would you consider feature XYZ? It requires C11, but don't worry, all compilers support it."
### "Would you consider feature XYZ? It requires C11, but don't worry, all compilers support it."
One of the philosophies of miniaudio is that it should just work, and that includes compilation environment. There's
One of the philosophies of miniaudio is that it should just work, and that includes compilation environment. There's
no real reason to not support
support
older compilers. Newer versions of C will not add anything of any significance
no real reason to not support older compilers. Newer versions of C will not add anything of any significance
that cannot already be done in C89.
that cannot already be done in C89.
### "Will you consider adding a third license option such as [my favourite license]?"
### "Will you consider adding a third license option such as [my favourite license]?"
...
...
research/miniaudio_engine.h
View file @
b3bc6723
...
@@ -1636,6 +1636,7 @@ MA_API ma_result ma_sound_set_volume(ma_sound* pSound, float volume);
...
@@ -1636,6 +1636,7 @@ MA_API ma_result ma_sound_set_volume(ma_sound* pSound, float volume);
MA_API
ma_result
ma_sound_set_gain_db
(
ma_sound
*
pSound
,
float
gainDB
);
MA_API
ma_result
ma_sound_set_gain_db
(
ma_sound
*
pSound
,
float
gainDB
);
MA_API
ma_result
ma_sound_set_effect
(
ma_sound
*
pSound
,
ma_effect
*
pEffect
);
MA_API
ma_result
ma_sound_set_effect
(
ma_sound
*
pSound
,
ma_effect
*
pEffect
);
MA_API
ma_result
ma_sound_set_pan
(
ma_sound
*
pSound
,
float
pan
);
MA_API
ma_result
ma_sound_set_pan
(
ma_sound
*
pSound
,
float
pan
);
MA_API
ma_result
ma_sound_set_pan_mode
(
ma_sound
*
pSound
,
ma_pan_mode
pan_mode
);
MA_API
ma_result
ma_sound_set_pitch
(
ma_sound
*
pSound
,
float
pitch
);
MA_API
ma_result
ma_sound_set_pitch
(
ma_sound
*
pSound
,
float
pitch
);
MA_API
ma_result
ma_sound_set_position
(
ma_sound
*
pSound
,
ma_vec3
position
);
MA_API
ma_result
ma_sound_set_position
(
ma_sound
*
pSound
,
ma_vec3
position
);
MA_API
ma_result
ma_sound_set_rotation
(
ma_sound
*
pSound
,
ma_quat
rotation
);
MA_API
ma_result
ma_sound_set_rotation
(
ma_sound
*
pSound
,
ma_quat
rotation
);
...
@@ -9014,6 +9015,15 @@ MA_API ma_result ma_sound_set_pan(ma_sound* pSound, float pan)
...
@@ -9014,6 +9015,15 @@ MA_API ma_result ma_sound_set_pan(ma_sound* pSound, float pan)
return
ma_panner_set_pan
(
&
pSound
->
effect
.
panner
,
pan
);
return
ma_panner_set_pan
(
&
pSound
->
effect
.
panner
,
pan
);
}
}
MA_API
ma_result
ma_sound_set_pan_mode
(
ma_sound
*
pSound
,
ma_pan_mode
pan_mode
)
{
if
(
pSound
==
NULL
)
{
return
MA_INVALID_ARGS
;
}
return
ma_panner_set_mode
(
&
pSound
->
effect
.
panner
,
pan_mode
);
}
MA_API
ma_result
ma_sound_set_position
(
ma_sound
*
pSound
,
ma_vec3
position
)
MA_API
ma_result
ma_sound_set_position
(
ma_sound
*
pSound
,
ma_vec3
position
)
{
{
if
(
pSound
==
NULL
)
{
if
(
pSound
==
NULL
)
{
...
...
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