Skip to content

Commit

Permalink
Ignore unsupported file formats in SoundSourceProxyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jun 7, 2020
1 parent 7c94bff commit b442828
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/test/soundproxy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ class SoundSourceProxyTest: public MixxxTest {
const auto channelCount = mixxx::audio::ChannelCount(2);
openParams.setChannelCount(mixxx::audio::ChannelCount(2));
auto pAudioSource = proxy.openAudioSource(openParams);
EXPECT_FALSE(!pAudioSource);
if (pAudioSource->getSignalInfo().getChannelCount() != channelCount) {
// Wrap into proxy object
pAudioSource = mixxx::AudioSourceStereoProxy::create(
pAudioSource,
kMaxReadFrameCount);
if (pAudioSource) {
if (pAudioSource->getSignalInfo().getChannelCount() != channelCount) {
// Wrap into proxy object
pAudioSource = mixxx::AudioSourceStereoProxy::create(
pAudioSource,
kMaxReadFrameCount);
}
EXPECT_EQ(pAudioSource->getSignalInfo().getChannelCount(), channelCount);
}
EXPECT_EQ(pAudioSource->getSignalInfo().getChannelCount(), channelCount);
return pAudioSource;
}

Expand Down

0 comments on commit b442828

Please sign in to comment.