Tidy up MIN/MAX freq checks
This commit is contained in:
@@ -723,13 +723,12 @@ void decouple(chanend c_mix_out
|
||||
/* Check for freq change or other update */
|
||||
|
||||
GET_SHARED_GLOBAL(tmp, g_freqChange_flag);
|
||||
#if MIN_FREQ != MAX_FREQ
|
||||
#if (MIN_FREQ != MAX_FREQ)
|
||||
if (tmp == SET_SAMPLE_FREQ)
|
||||
{
|
||||
SET_SHARED_GLOBAL(g_freqChange_flag, 0);
|
||||
GET_SHARED_GLOBAL(sampFreq, g_freqChange_sampFreq);
|
||||
|
||||
|
||||
/* Pass on to mixer */
|
||||
DISABLE_INTERRUPTS();
|
||||
inuint(c_mix_out);
|
||||
|
||||
@@ -310,7 +310,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
||||
{
|
||||
unsigned cmd = inuint(c_aud_ctl);
|
||||
|
||||
#if MAX_FREQ != MIN_FREQ
|
||||
#if (MAX_FREQ != MIN_FREQ)
|
||||
if(cmd == SET_SAMPLE_FREQ)
|
||||
{
|
||||
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
||||
|
||||
Reference in New Issue
Block a user