aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/null.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-12-04 19:50:00 -0800
committerChris Robinson <[email protected]>2010-12-04 19:50:00 -0800
commit88e3a2277235fe173d4d0ff3f10c0becdc9c82cd (patch)
tree3cfad0017b809fc08e69cc9ec99fe622d26a2606 /Alc/null.c
parent191803ad53c156d3f056b649c76e441042a385fb (diff)
Separate device format into 'channel config' and 'sample type' components
Diffstat (limited to 'Alc/null.c')
-rw-r--r--Alc/null.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/null.c b/Alc/null.c
index fd5cc85a..15efee1d 100644
--- a/Alc/null.c
+++ b/Alc/null.c
@@ -104,7 +104,8 @@ static ALCboolean null_reset_playback(ALCdevice *device)
{
null_data *data = (null_data*)device->ExtraData;
- data->size = device->UpdateSize * aluFrameSizeFromFormat(device->Format);
+ data->size = device->UpdateSize * FrameSizeFromDevFmt(device->FmtChans,
+ device->FmtType);
data->buffer = malloc(data->size);
if(!data->buffer)
{