aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/null.c
diff options
context:
space:
mode:
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)
{