Skip to content

Commit

Permalink
Minor varname correction to reflect spirit of API.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 28, 2004
1 parent 0096e06 commit 87c4bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osx/alContext.c
Expand Up @@ -541,7 +541,7 @@ ALCAPI ALvoid ALCAPIENTRY alcSuspendContext( ALCcontext *alcHandle )
#if SUPPORTS_ALC_EXT_CAPTURE
ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALubyte *deviceName,
ALuint freq, ALenum fmt,
ALsizei bufsize)
ALsizei samples)
{
ALdevice *retval;
ALuint fmtsize = 0;
Expand All @@ -561,7 +561,7 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALubyte *deviceName,
if (!retval)
return(NULL);

if (!__alRingBufferInit(&retval->capture.ring, bufsize * fmtsize))
if (!__alRingBufferInit(&retval->capture.ring, samples * fmtsize))
{
alcCloseDevice((ALCdevice *) retval);
return(NULL);
Expand Down

0 comments on commit 87c4bca

Please sign in to comment.