Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoundSourceM4A: Reconfigure decoder after channel config errors #2850

Merged
merged 20 commits into from
Jun 13, 2020
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore unsupported file formats in SoundSourceProxyTest
  • Loading branch information
uklotzde committed Jun 7, 2020
commit b442828a6e40df8e8b6ceeaf175032cc197d36a4
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