mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Merge branch 'dev' of https://github.com/mackron/miniaudio into dev
This commit is contained in:
+1
-1
@@ -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]?"
|
||||||
|
|||||||
@@ -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)
|
|||||||
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user