Skip to content

Commit

Permalink
Minor tweaks for adding to OpenAL.org's cvs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 18, 2005
1 parent 77753d6 commit 16ca427
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osx/test/testcapture.c
@@ -1,3 +1,10 @@
/*
* This is a test program for the ALC_EXT_capture extension. This
* test code is public domain and comes with NO WARRANTY.
*
* Written by Ryan C. Gordon <icculus@icculus.org>
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand All @@ -19,7 +26,7 @@ static ALvoid (*alcCaptureSamples)(ALCdevice *device, ALvoid *buf,
ALenum _AL_FORMAT_MONO_FLOAT32 = 0;
ALenum _AL_FORMAT_STEREO_FLOAT32 = 0;

#define FMT _AL_FORMAT_STEREO_FLOAT32
#define FMT AL_FORMAT_MONO16;
#define FMTSIZE 8
#define FREQ 44100
#define SAMPS (FREQ * 5)
Expand Down Expand Up @@ -65,6 +72,7 @@ int main(int argc, char **argv)
GET_PROC(alcCaptureStop);
GET_PROC(alcCaptureSamples);

// these may not exist, depending on the implementation.
_AL_FORMAT_MONO_FLOAT32 = alGetEnumValue((ALubyte *) "AL_FORMAT_MONO_FLOAT32");
_AL_FORMAT_STEREO_FLOAT32 = alGetEnumValue((ALubyte *) "AL_FORMAT_STEREO_FLOAT32");
alGetError();
Expand Down

0 comments on commit 16ca427

Please sign in to comment.