Skip to content

Commit

Permalink
Added pSound check to ma_sound_get_cone()
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrixican authored and mackron committed Oct 14, 2023
1 parent aef76e2 commit a185b99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miniaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -76505,6 +76505,10 @@ MA_API void ma_sound_get_cone(const ma_sound* pSound, float* pInnerAngleInRadian
*pOuterGain = 0;
}

if (pSound == NULL) {
return;
}

ma_spatializer_get_cone(&pSound->engineNode.spatializer, pInnerAngleInRadians, pOuterAngleInRadians, pOuterGain);
}

Expand Down

0 comments on commit a185b99

Please sign in to comment.