aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alplay.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-12 03:14:01 -0700
committerChris Robinson <[email protected]>2019-09-12 03:22:34 -0700
commit4c76f32ddac5145231609b1cb4f28028abed814b (patch)
tree139ec9836d367b014e17c6afc614d71338c15ff0 /examples/alplay.c
parent474d478854ef2ec46bf7b0cb6148c91b7fb8cc2c (diff)
Avoid implicit conversions with the examples and utils
Diffstat (limited to 'examples/alplay.c')
-rw-r--r--examples/alplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/alplay.c b/examples/alplay.c
index 4ff8fb7f..09ad96b4 100644
--- a/examples/alplay.c
+++ b/examples/alplay.c
@@ -101,7 +101,7 @@ static ALuint LoadSound(const char *filename)
* close the file. */
buffer = 0;
alGenBuffers(1, &buffer);
- alBufferData(buffer, format, sample->buffer, slen, sample->actual.rate);
+ alBufferData(buffer, format, sample->buffer, (ALsizei)slen, (ALsizei)sample->actual.rate);
Sound_FreeSample(sample);
/* Check if an error occured, and clean up if so. */
@@ -151,7 +151,7 @@ int main(int argc, char **argv)
/* Create the source to play the sound with. */
source = 0;
alGenSources(1, &source);
- alSourcei(source, AL_BUFFER, buffer);
+ alSourcei(source, AL_BUFFER, (ALint)buffer);
assert(alGetError()==AL_NO_ERROR && "Failed to setup sound source");
/* Play the sound until it finishes. */