barelymusician/dsp/polyphonic_voice_test.cpp
// Tests that the polyphonic voice produces silence when there are no available
// voices set.
Tests that the polyphonic voice produces silence when there are no available
voices set.
Tests that the polyphonic voice produces silence when there are no available voices set .
TEST(PolyphonicVoiceTest, NoVoice) {
  FakeVoice base_voice;
  base_voice.SetOutput(kOutput);
  PolyphonicVoice<FakeVoice> polyphonic_voice(std::move(base_voice));
  EXPECT_DOUBLE_EQ(polyphonic_voice.Next(kChannel), 0.0);
  polyphonic_voice.Start(0);
  EXPECT_DOUBLE_EQ(polyphonic_voice.Next(kChannel), 0.0);
}
TEST ( PolyphonicVoiceTest , NoVoice ) { FakeVoice base_voice ; base_voice . SetOutput ( kOutput ) ; PolyphonicVoice < FakeVoice > polyphonic_voice ( std :: move ( base_voice ) ) ; EXPECT_DOUBLE_EQ ( polyphonic_voice . Next ( kChannel ) , 0.0 ) ; polyphonic_voice . Start ( 0 ) ; EXPECT_DOUBLE_EQ ( polyphonic_voice . Next ( kChannel ) , 0.0 ) ; }
Tests that the polyphonic voice produces silence when there are no available
voices set.
Tests that the polyphonic voice produces silence when there are no available voices set .