dsound: Remove redundant assignments to freqAdjustNum and freqAdjustDen.
This commit is contained in:
parent
7bd2e99b66
commit
c2563de512
1 changed files with 0 additions and 5 deletions
|
@ -291,8 +291,6 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFrequency(IDirectSoundBuffer8 *i
|
|||
oldFreq = This->freq;
|
||||
This->freq = freq;
|
||||
if (freq != oldFreq) {
|
||||
This->freqAdjustNum = This->freq;
|
||||
This->freqAdjustDen = This->device->pwfx->nSamplesPerSec;
|
||||
DSOUND_RecalcFormat(This);
|
||||
|
||||
newcommitted = realloc(This->committedbuff, This->writelead);
|
||||
|
@ -1111,9 +1109,6 @@ HRESULT secondarybuffer_create(DirectSoundDevice *device, const DSBUFFERDESC *ds
|
|||
dsb->sec_mixpos = 0;
|
||||
dsb->state = STATE_STOPPED;
|
||||
|
||||
dsb->freqAdjustNum = dsb->freq;
|
||||
dsb->freqAdjustDen = device->pwfx->nSamplesPerSec;
|
||||
|
||||
/* calculate fragment size and write lead */
|
||||
DSOUND_RecalcFormat(dsb);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue