Removed useless spaces
This commit is contained in:
parent
222995c32e
commit
d2b98fbb5c
13 changed files with 1288 additions and 1288 deletions
20
src/audio.c
20
src/audio.c
|
@ -55,14 +55,14 @@
|
||||||
typedef struct Music {
|
typedef struct Music {
|
||||||
stb_vorbis *stream;
|
stb_vorbis *stream;
|
||||||
|
|
||||||
ALuint buffers[MUSIC_STREAM_BUFFERS];
|
ALuint buffers[MUSIC_STREAM_BUFFERS];
|
||||||
ALuint source;
|
ALuint source;
|
||||||
ALenum format;
|
ALenum format;
|
||||||
|
|
||||||
int channels;
|
int channels;
|
||||||
int sampleRate;
|
int sampleRate;
|
||||||
int totalSamplesLeft;
|
int totalSamplesLeft;
|
||||||
bool loop;
|
bool loop;
|
||||||
|
|
||||||
} Music;
|
} Music;
|
||||||
|
|
||||||
|
@ -553,10 +553,10 @@ float GetMusicTimePlayed()
|
||||||
// Fill music buffers with new data from music stream
|
// Fill music buffers with new data from music stream
|
||||||
static bool BufferMusicStream(ALuint buffer)
|
static bool BufferMusicStream(ALuint buffer)
|
||||||
{
|
{
|
||||||
short pcm[MUSIC_BUFFER_SIZE];
|
short pcm[MUSIC_BUFFER_SIZE];
|
||||||
|
|
||||||
int size = 0; // Total size of data steamed (in bytes)
|
int size = 0; // Total size of data steamed (in bytes)
|
||||||
int streamedBytes = 0; // Bytes of data obtained in one samples get
|
int streamedBytes = 0; // Bytes of data obtained in one samples get
|
||||||
|
|
||||||
bool active = true; // We can get more data from stream (not finished)
|
bool active = true; // We can get more data from stream (not finished)
|
||||||
|
|
||||||
|
@ -573,7 +573,7 @@ static bool BufferMusicStream(ALuint buffer)
|
||||||
TraceLog(DEBUG, "Streaming music data to buffer. Bytes streamed: %i", size);
|
TraceLog(DEBUG, "Streaming music data to buffer. Bytes streamed: %i", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > 0)
|
if (size > 0)
|
||||||
{
|
{
|
||||||
alBufferData(buffer, currentMusic.format, pcm, size*sizeof(short), currentMusic.sampleRate);
|
alBufferData(buffer, currentMusic.format, pcm, size*sizeof(short), currentMusic.sampleRate);
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ static bool BufferMusicStream(ALuint buffer)
|
||||||
TraceLog(WARNING, "No more data obtained from stream");
|
TraceLog(WARNING, "No more data obtained from stream");
|
||||||
}
|
}
|
||||||
|
|
||||||
return active;
|
return active;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty music buffers
|
// Empty music buffers
|
||||||
|
|
|
@ -810,7 +810,7 @@ Model LoadCubesmap(Image cubesmap)
|
||||||
|
|
||||||
Vector3 *mapVertices = (Vector3 *)malloc(maxTriangles * 3 * sizeof(Vector3));
|
Vector3 *mapVertices = (Vector3 *)malloc(maxTriangles * 3 * sizeof(Vector3));
|
||||||
Vector2 *mapTexcoords = (Vector2 *)malloc(maxTriangles * 3 * sizeof(Vector2));
|
Vector2 *mapTexcoords = (Vector2 *)malloc(maxTriangles * 3 * sizeof(Vector2));
|
||||||
Vector3 *mapNormals = (Vector3 *)malloc(maxTriangles * 3 * sizeof(Vector3));
|
Vector3 *mapNormals = (Vector3 *)malloc(maxTriangles * 3 * sizeof(Vector3));
|
||||||
|
|
||||||
for (int z = 0; z < mapHeight; z += mapCubeSide)
|
for (int z = 0; z < mapHeight; z += mapCubeSide)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue