sudo make install gathers files from release folder rather than cwd.

Fixed compile errors in raylib_demo.c where audio methods are not supplied enough args
This commit is contained in:
0nix 2016-08-11 13:19:05 -05:00
commit 6577aa890e

View file

@ -203,7 +203,7 @@ int main()
catTexture = LoadTexture("resources/catsham.png"); // Load model texture
cat = LoadModel("resources/cat.obj"); // Load OBJ model
cat.material.texDiffuse = texture; // Set cat model diffuse texture
cat.material.texDiffuse = catTexture; // Set cat model diffuse texture
fxWav = LoadSound("resources/audio/weird.wav"); // Load WAV audio file
fxOgg = LoadSound("resources/audio/tanatana.ogg"); // Load OGG audio file
@ -464,11 +464,11 @@ void UpdateDrawOneFrame(void)
if (selectedModule == AUDIO)
{
if (IsKeyPressed(KEY_SPACE) && !MusicIsPlaying()) PlayMusicStream("resources/audio/guitar_noodling.ogg"); // Play music stream
if (IsKeyPressed(KEY_SPACE) && !MusicIsPlaying()) PlayMusicStream(1,"resources/audio/guitar_noodling.ogg"); // Play music stream
if (IsKeyPressed('S'))
{
StopMusicStream();
StopMusicStream(1);
timePlayed = 0.0f;
for (int i = 0; i < MAX_BALLS; i++)
@ -484,7 +484,7 @@ void UpdateDrawOneFrame(void)
if (MusicIsPlaying())
{
timePlayed = GetMusicTimePlayed() / GetMusicTimeLength() * 100 * 4;
timePlayed = GetMusicTimePlayed(1) / GetMusicTimeLength(11) * 100 * 4;
if ((framesCounter%10) == 0)
{
@ -921,4 +921,4 @@ void UpdateDrawOneFrame(void)
EndDrawing();
//----------------------------------------------------------------------------------
}
}