Searched refs:DSOUND_FREQSHIFT (Results 1 – 5 of 5) sorted by relevance
108 acc = (framelen << DSOUND_FREQSHIFT) + (freqAdjust - 1 - freqAcc); in DSOUND_secpos_to_bufpos()113 assert(oshot >= framelen << DSOUND_FREQSHIFT); in DSOUND_secpos_to_bufpos()114 oshot -= framelen << DSOUND_FREQSHIFT; in DSOUND_secpos_to_bufpos()133 acc = acc >> DSOUND_FREQSHIFT; in DSOUND_bufpos_to_secpos()376 cp_fields(dsb, ibp, obp, iAdvance, oAdvance, size, 0, 1 << DSOUND_FREQSHIFT); in DSOUND_MixToTemporary()384 overshot = freqAcc >> DSOUND_FREQSHIFT; in DSOUND_MixToTemporary()394 freqAcc &= (1 << DSOUND_FREQSHIFT) - 1; in DSOUND_MixToTemporary()
50 if (*freqAcc >= (1 << DSOUND_FREQSHIFT)) in src_advance()52 ULONG adv = (*freqAcc >> DSOUND_FREQSHIFT); in src_advance()53 *freqAcc &= (1 << DSOUND_FREQSHIFT) - 1; in src_advance()
405 #define DSOUND_FREQSHIFT (20) macro
295 This->freqAdjust = ((DWORD64)This->freq << DSOUND_FREQSHIFT) / This->device->pwfx->nSamplesPerSec; in IDirectSoundBufferImpl_SetFrequency()1064 dsb->freqAdjust = ((DWORD64)dsb->freq << DSOUND_FREQSHIFT) / device->pwfx->nSamplesPerSec; in IDirectSoundBufferImpl_Create()
583 (*dsb)->freqAdjust = ((DWORD64)(*dsb)->freq << DSOUND_FREQSHIFT) / device->pwfx->nSamplesPerSec; in primarybuffer_SetFormat()