diff options
| author | listeria <[email protected]> | 2024-05-21 03:13:46 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-21 08:13:46 +0200 |
| commit | bb9bd73f435892b6f6f17d7068a7fe56dfca235d (patch) | |
| tree | a16a53a8d0dbaa4e70a12e7e57f52833a0379e7e /src/raylib.h | |
| parent | 9d67f4734b59244b5b10d45ce7c8eed76323c3b5 (diff) | |
| download | raylib-bb9bd73f435892b6f6f17d7068a7fe56dfca235d.tar.gz raylib-bb9bd73f435892b6f6f17d7068a7fe56dfca235d.zip | |
fix WaveCrop() and use frames instead of samples (#3994)
Co-authored-by: Listeria monocytogenes <[email protected]>
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 035f6f2b..c53ea555 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1624,7 +1624,7 @@ RLAPI void SetSoundVolume(Sound sound, float volume); // Set vol RLAPI void SetSoundPitch(Sound sound, float pitch); // Set pitch for a sound (1.0 is base level) RLAPI void SetSoundPan(Sound sound, float pan); // Set pan for a sound (0.5 is center) RLAPI Wave WaveCopy(Wave wave); // Copy a wave to a new wave -RLAPI void WaveCrop(Wave *wave, int initSample, int finalSample); // Crop a wave to defined samples range +RLAPI void WaveCrop(Wave *wave, int initFrame, int finalFrame); // Crop a wave to defined frames range RLAPI void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels); // Convert wave data to desired format RLAPI float *LoadWaveSamples(Wave wave); // Load samples data from wave as a 32bit float data array RLAPI void UnloadWaveSamples(float *samples); // Unload samples data loaded with LoadWaveSamples() |
