diff options
| author | Ray <[email protected]> | 2022-05-05 20:39:14 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-05-05 20:39:14 +0200 |
| commit | ed2ab55034078da1c09073a5cb1cd9de35d3afe8 (patch) | |
| tree | cacf926a72e6767d255f3856b01931dc9acaf5e9 /src/raudio.c | |
| parent | 4eb3d8857f1a8377f2cfa6e804183512cde5973e (diff) | |
| download | raylib-ed2ab55034078da1c09073a5cb1cd9de35d3afe8.tar.gz raylib-ed2ab55034078da1c09073a5cb1cd9de35d3afe8.zip | |
Remove line ending spaces
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/raudio.c b/src/raudio.c index 9b83afd7..aae9ba87 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -314,7 +314,7 @@ typedef enum { // Audio buffer struct struct rAudioBuffer { ma_data_converter converter; // Audio data converter - + AudioCallback callback; // Audio buffer callback for buffer filling on audio threads rAudioProcessor *processor; // Audio processor @@ -338,7 +338,7 @@ struct rAudioBuffer { rAudioBuffer *prev; // Previous audio buffer on the list }; -// Audio processor struct +// Audio processor struct // NOTE: Useful to apply effects to an AudioBuffer struct rAudioProcessor { AudioCallback process; // Processor callback function @@ -566,14 +566,14 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam audioBuffer->volume = 1.0f; audioBuffer->pitch = 1.0f; audioBuffer->pan = 0.5f; - + audioBuffer->callback = NULL; audioBuffer->processor = NULL; audioBuffer->playing = false; audioBuffer->paused = false; audioBuffer->looping = false; - + audioBuffer->usage = usage; audioBuffer->frameCursorPos = 0; audioBuffer->sizeInFrames = sizeInFrames; @@ -2119,10 +2119,10 @@ static ma_uint32 ReadAudioBufferFramesInInternalFormat(AudioBuffer *audioBuffer, { audioBuffer->callback(framesOut, frameCount); audioBuffer->framesProcessed += frameCount; - + return frameCount; } - + ma_uint32 subBufferSizeInFrames = (audioBuffer->sizeInFrames > 1)? audioBuffer->sizeInFrames/2 : audioBuffer->sizeInFrames; ma_uint32 currentSubBufferIndex = audioBuffer->frameCursorPos/subBufferSizeInFrames; |
