Fixes for Mac/iOS
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -187,13 +187,14 @@ public:
|
||||
|
||||
AZStd::size_t GetData(void** outputData, AZStd::size_t numFrames, const SAudioInputConfig& targetConfig, bool shouldDeinterleave) override
|
||||
{
|
||||
bool changeSampleType = (targetConfig.m_sampleType != m_config.m_sampleType);
|
||||
bool changeSampleRate = (targetConfig.m_sampleRate != m_config.m_sampleRate);
|
||||
bool changeNumChannels = (targetConfig.m_numChannels != m_config.m_numChannels);
|
||||
#if defined(USE_LIBSAMPLERATE)
|
||||
// pending port of LIBSAMPLERATE to iOS
|
||||
return {};
|
||||
#else
|
||||
bool changeSampleType = (targetConfig.m_sampleType != m_config.m_sampleType);
|
||||
bool changeSampleRate = (targetConfig.m_sampleRate != m_config.m_sampleRate);
|
||||
bool changeNumChannels = (targetConfig.m_numChannels != m_config.m_numChannels);
|
||||
|
||||
if (changeSampleType || changeNumChannels)
|
||||
{
|
||||
// Without the SRC library, any change is unsupported!
|
||||
|
||||
Reference in New Issue
Block a user