aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-14 22:05:56 -0800
committerChris Robinson <[email protected]>2008-02-14 22:05:56 -0800
commit8c3188bc7dc2f47a27398fc61ed2dacd36397190 (patch)
tree5c46bd2fb13355a1bdb6f6118b86bee9452f2859 /Alc/ALc.c
parent880196e5a811356c4a6b36798a81429b4a48eb40 (diff)
Remove FrameSize struct member
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7ce5c85b..2e3d2adf 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -451,8 +451,6 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, AL
pDevice->Frequency = frequency;
pDevice->Format = format;
- pDevice->FrameSize = aluBytesFromFormat(format) *
- aluChannelsFromFormat(format);
for(i = 0;BackendList[i].Init;i++)
{
@@ -1169,13 +1167,7 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName)
device->Format = alGetEnumValue(fmt);
if(!aluChannelsFromFormat(device->Format))
- {
device->Format = AL_FORMAT_STEREO16;
- device->FrameSize = 4;
- }
- else
- device->FrameSize = aluBytesFromFormat(device->Format) *
- aluChannelsFromFormat(device->Format);
device->UpdateSize = GetConfigValueInt(NULL, "refresh", 8192);
if((ALint)device->UpdateSize <= 0)