]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_coreaudio.c
changed strzone, stuffcmd, and localcmd to be able to take multiple strings
[xonotic/darkplaces.git] / snd_coreaudio.c
index 5788387e939edb5bb2b5e140d5e17c2e0c65d117..10214b900b9ecc50bc3684f53d1b34487a33cc48 100644 (file)
@@ -174,7 +174,7 @@ qboolean SNDDMA_Init(void)
        }
 
        maxMixedSamples = BUFFER_SIZE;
-       s_mixedSamples = Mem_Alloc (snd_mempool, sizeof(*s_mixedSamples) * maxMixedSamples);
+       s_mixedSamples = (short *)Mem_Alloc (snd_mempool, sizeof(*s_mixedSamples) * maxMixedSamples);
        Con_DPrintf("   Buffer size = %d samples (%d chunks)\n",
                                maxMixedSamples, (maxMixedSamples / submissionChunk));
 
@@ -184,7 +184,7 @@ qboolean SNDDMA_Init(void)
        shm->format.channels = outputStreamBasicDescription.mChannelsPerFrame;
        shm->format.width = 2;
        shm->samples = maxMixedSamples;
-       shm->buffer = (qbyte *)s_mixedSamples;
+       shm->buffer = (unsigned char *)s_mixedSamples;
        shm->samplepos = 0;
 
        // We haven't enqueued anything yet