forked from PAWPAW-Mirror/lib_xua
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 */
|
/* Check for freq change or other update */
|
||||||
|
|
||||||
GET_SHARED_GLOBAL(tmp, g_freqChange_flag);
|
GET_SHARED_GLOBAL(tmp, g_freqChange_flag);
|
||||||
#if MIN_FREQ != MAX_FREQ
|
#if (MIN_FREQ != MAX_FREQ)
|
||||||
if (tmp == SET_SAMPLE_FREQ)
|
if (tmp == SET_SAMPLE_FREQ)
|
||||||
{
|
{
|
||||||
SET_SHARED_GLOBAL(g_freqChange_flag, 0);
|
SET_SHARED_GLOBAL(g_freqChange_flag, 0);
|
||||||
GET_SHARED_GLOBAL(sampFreq, g_freqChange_sampFreq);
|
GET_SHARED_GLOBAL(sampFreq, g_freqChange_sampFreq);
|
||||||
|
|
||||||
|
|
||||||
/* Pass on to mixer */
|
/* Pass on to mixer */
|
||||||
DISABLE_INTERRUPTS();
|
DISABLE_INTERRUPTS();
|
||||||
inuint(c_mix_out);
|
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);
|
unsigned cmd = inuint(c_aud_ctl);
|
||||||
|
|
||||||
#if MAX_FREQ != MIN_FREQ
|
#if (MAX_FREQ != MIN_FREQ)
|
||||||
if(cmd == SET_SAMPLE_FREQ)
|
if(cmd == SET_SAMPLE_FREQ)
|
||||||
{
|
{
|
||||||
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
||||||
|
|||||||
Reference in New Issue
Block a user