diff options
author | Chris Robinson <[email protected]> | 2010-12-04 19:50:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-12-04 19:50:00 -0800 |
commit | 88e3a2277235fe173d4d0ff3f10c0becdc9c82cd (patch) | |
tree | 3cfad0017b809fc08e69cc9ec99fe622d26a2606 /Alc/null.c | |
parent | 191803ad53c156d3f056b649c76e441042a385fb (diff) |
Separate device format into 'channel config' and 'sample type' components
Diffstat (limited to 'Alc/null.c')
-rw-r--r-- | Alc/null.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |