Remove line ending spaces
This commit is contained in:
parent
4eb3d8857f
commit
ed2ab55034
3 changed files with 19 additions and 19 deletions
12
src/raudio.c
12
src/raudio.c
|
@ -314,7 +314,7 @@ typedef enum {
|
||||||
// Audio buffer struct
|
// Audio buffer struct
|
||||||
struct rAudioBuffer {
|
struct rAudioBuffer {
|
||||||
ma_data_converter converter; // Audio data converter
|
ma_data_converter converter; // Audio data converter
|
||||||
|
|
||||||
AudioCallback callback; // Audio buffer callback for buffer filling on audio threads
|
AudioCallback callback; // Audio buffer callback for buffer filling on audio threads
|
||||||
rAudioProcessor *processor; // Audio processor
|
rAudioProcessor *processor; // Audio processor
|
||||||
|
|
||||||
|
@ -338,7 +338,7 @@ struct rAudioBuffer {
|
||||||
rAudioBuffer *prev; // Previous audio buffer on the list
|
rAudioBuffer *prev; // Previous audio buffer on the list
|
||||||
};
|
};
|
||||||
|
|
||||||
// Audio processor struct
|
// Audio processor struct
|
||||||
// NOTE: Useful to apply effects to an AudioBuffer
|
// NOTE: Useful to apply effects to an AudioBuffer
|
||||||
struct rAudioProcessor {
|
struct rAudioProcessor {
|
||||||
AudioCallback process; // Processor callback function
|
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->volume = 1.0f;
|
||||||
audioBuffer->pitch = 1.0f;
|
audioBuffer->pitch = 1.0f;
|
||||||
audioBuffer->pan = 0.5f;
|
audioBuffer->pan = 0.5f;
|
||||||
|
|
||||||
audioBuffer->callback = NULL;
|
audioBuffer->callback = NULL;
|
||||||
audioBuffer->processor = NULL;
|
audioBuffer->processor = NULL;
|
||||||
|
|
||||||
audioBuffer->playing = false;
|
audioBuffer->playing = false;
|
||||||
audioBuffer->paused = false;
|
audioBuffer->paused = false;
|
||||||
audioBuffer->looping = false;
|
audioBuffer->looping = false;
|
||||||
|
|
||||||
audioBuffer->usage = usage;
|
audioBuffer->usage = usage;
|
||||||
audioBuffer->frameCursorPos = 0;
|
audioBuffer->frameCursorPos = 0;
|
||||||
audioBuffer->sizeInFrames = sizeInFrames;
|
audioBuffer->sizeInFrames = sizeInFrames;
|
||||||
|
@ -2119,10 +2119,10 @@ static ma_uint32 ReadAudioBufferFramesInInternalFormat(AudioBuffer *audioBuffer,
|
||||||
{
|
{
|
||||||
audioBuffer->callback(framesOut, frameCount);
|
audioBuffer->callback(framesOut, frameCount);
|
||||||
audioBuffer->framesProcessed += frameCount;
|
audioBuffer->framesProcessed += frameCount;
|
||||||
|
|
||||||
return frameCount;
|
return frameCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
ma_uint32 subBufferSizeInFrames = (audioBuffer->sizeInFrames > 1)? audioBuffer->sizeInFrames/2 : audioBuffer->sizeInFrames;
|
ma_uint32 subBufferSizeInFrames = (audioBuffer->sizeInFrames > 1)? audioBuffer->sizeInFrames/2 : audioBuffer->sizeInFrames;
|
||||||
ma_uint32 currentSubBufferIndex = audioBuffer->frameCursorPos/subBufferSizeInFrames;
|
ma_uint32 currentSubBufferIndex = audioBuffer->frameCursorPos/subBufferSizeInFrames;
|
||||||
|
|
||||||
|
|
|
@ -357,16 +357,16 @@ RMAPI Vector2 Vector2Normalize(Vector2 v)
|
||||||
// Transforms a Vector2 by a given Matrix
|
// Transforms a Vector2 by a given Matrix
|
||||||
RMAPI Vector2 Vector2Transform(Vector2 v, Matrix mat)
|
RMAPI Vector2 Vector2Transform(Vector2 v, Matrix mat)
|
||||||
{
|
{
|
||||||
Vector2 result = { 0 };
|
Vector2 result = { 0 };
|
||||||
|
|
||||||
float x = v.x;
|
float x = v.x;
|
||||||
float y = v.y;
|
float y = v.y;
|
||||||
float z = 0;
|
float z = 0;
|
||||||
|
|
||||||
result.x = mat.m0*x + mat.m4*y + mat.m8*z + mat.m12;
|
result.x = mat.m0*x + mat.m4*y + mat.m8*z + mat.m12;
|
||||||
result.y = mat.m1*x + mat.m5*y + mat.m9*z + mat.m13;
|
result.y = mat.m1*x + mat.m5*y + mat.m9*z + mat.m13;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate linear interpolation between two vectors
|
// Calculate linear interpolation between two vectors
|
||||||
|
@ -991,17 +991,17 @@ RMAPI Vector3 Vector3Refract(Vector3 v, Vector3 n, float r)
|
||||||
|
|
||||||
float dot = v.x*n.x + v.y*n.y + v.z*n.z;
|
float dot = v.x*n.x + v.y*n.y + v.z*n.z;
|
||||||
float d = 1.0f - r*r*(1.0f - dot*dot);
|
float d = 1.0f - r*r*(1.0f - dot*dot);
|
||||||
|
|
||||||
if (d >= 0.0f)
|
if (d >= 0.0f)
|
||||||
{
|
{
|
||||||
d = sqrtf(d);
|
d = sqrtf(d);
|
||||||
v.x = r*v.x - (r*dot + d)*n.x;
|
v.x = r*v.x - (r*dot + d)*n.x;
|
||||||
v.y = r*v.y - (r*dot + d)*n.y;
|
v.y = r*v.y - (r*dot + d)*n.y;
|
||||||
v.z = r*v.z - (r*dot + d)*n.z;
|
v.z = r*v.z - (r*dot + d)*n.z;
|
||||||
|
|
||||||
result = v;
|
result = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -754,7 +754,7 @@ void InitWindow(int width, int height, const char *title)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title;
|
if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title;
|
||||||
|
|
||||||
// Initialize global input state
|
// Initialize global input state
|
||||||
memset(&CORE.Input, 0, sizeof(CORE.Input));
|
memset(&CORE.Input, 0, sizeof(CORE.Input));
|
||||||
CORE.Input.Keyboard.exitKey = KEY_ESCAPE;
|
CORE.Input.Keyboard.exitKey = KEY_ESCAPE;
|
||||||
|
@ -1184,7 +1184,7 @@ void ToggleFullscreen(void)
|
||||||
|
|
||||||
int monitorCount = 0;
|
int monitorCount = 0;
|
||||||
int monitorIndex = GetCurrentMonitor();
|
int monitorIndex = GetCurrentMonitor();
|
||||||
GLFWmonitor **monitors = glfwGetMonitors(&monitorCount);
|
GLFWmonitor **monitors = glfwGetMonitors(&monitorCount);
|
||||||
|
|
||||||
// Use current monitor, so we correctly get the display the window is on
|
// Use current monitor, so we correctly get the display the window is on
|
||||||
GLFWmonitor *monitor = (monitorIndex < monitorCount)? monitors[monitorIndex] : NULL;
|
GLFWmonitor *monitor = (monitorIndex < monitorCount)? monitors[monitorIndex] : NULL;
|
||||||
|
@ -4875,7 +4875,7 @@ void SwapScreenBuffer(void)
|
||||||
result = drmModeRmFB(CORE.Window.fd, CORE.Window.prevFB);
|
result = drmModeRmFB(CORE.Window.fd, CORE.Window.prevFB);
|
||||||
if (result != 0) TRACELOG(LOG_ERROR, "DISPLAY: drmModeRmFB() failed with result: %d", result);
|
if (result != 0) TRACELOG(LOG_ERROR, "DISPLAY: drmModeRmFB() failed with result: %d", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
CORE.Window.prevFB = fb;
|
CORE.Window.prevFB = fb;
|
||||||
|
|
||||||
if (CORE.Window.prevBO) gbm_surface_release_buffer(CORE.Window.gbmSurface, CORE.Window.prevBO);
|
if (CORE.Window.prevBO) gbm_surface_release_buffer(CORE.Window.gbmSurface, CORE.Window.prevBO);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue