Commit 7bd2e99b authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

dsound: Remove the unused nAvgBytesPerSec field.

parent 7a9679a7
......@@ -293,7 +293,6 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFrequency(IDirectSoundBuffer8 *i
if (freq != oldFreq) {
This->freqAdjustNum = This->freq;
This->freqAdjustDen = This->device->pwfx->nSamplesPerSec;
This->nAvgBytesPerSec = freq * This->pwfx->nBlockAlign;
DSOUND_RecalcFormat(This);
newcommitted = realloc(This->committedbuff, This->writelead);
......@@ -1114,8 +1113,6 @@ HRESULT secondarybuffer_create(DirectSoundDevice *device, const DSBUFFERDESC *ds
dsb->freqAdjustNum = dsb->freq;
dsb->freqAdjustDen = device->pwfx->nSamplesPerSec;
dsb->nAvgBytesPerSec = dsb->freq *
dsbd->lpwfxFormat->nBlockAlign;
/* calculate fragment size and write lead */
DSOUND_RecalcFormat(dsb);
......
......@@ -141,7 +141,6 @@ struct IDirectSoundBufferImpl
BufferMemory* buffer;
DWORD playflags,state,leadin;
DWORD writelead,buflen;
DWORD nAvgBytesPerSec;
DWORD freq;
DSVOLUMEPAN volpan;
DSBUFFERDESC dsbd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment