Add safety notes to 'Update_' functions
This commit is contained in:
parent
cb3168a048
commit
d4f09984ac
3 changed files with 10 additions and 5 deletions
|
|
@ -1033,6 +1033,8 @@ void UnloadSoundAlias(Sound alias)
|
|||
}
|
||||
|
||||
// Update sound buffer with new data
|
||||
// NOTE 1: data format must match sound.stream.sampleSize
|
||||
// NOTE 2: frameCount must not exceed sound.frameCount
|
||||
void UpdateSound(Sound sound, const void *data, int frameCount)
|
||||
{
|
||||
if (sound.stream.buffer != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue