@@ -744,7 +744,7 @@ struct ex_peak_compressor : public labsound_example
744
744
745
745
hihat_node->setBus (r, hihat);
746
746
context->connect (filter, hihat_node, 0 , 0 );
747
- hihat_node->gain ()->setValue (0 .2f );
747
+ // hihat_node->gain()->setValue(0.2f);
748
748
749
749
snare_node->setBus (r, snare);
750
750
context->connect (filter, snare_node, 0 , 0 );
@@ -803,7 +803,7 @@ struct ex_stereo_panning : public labsound_example
803
803
804
804
audioClipNode->setBus (r, audioClip);
805
805
context->connect (stereoPanner, audioClipNode, 0 , 0 );
806
- audioClipNode->schedule (0.0 );
806
+ audioClipNode->schedule (0.0 , - 1 ); // -1 to loop forever
807
807
808
808
context->connect (context->device (), stereoPanner, 0 , 0 );
809
809
}
@@ -813,8 +813,6 @@ struct ex_stereo_panning : public labsound_example
813
813
_nodes.push_back (audioClipNode);
814
814
_nodes.push_back (stereoPanner);
815
815
816
- audioClipNode->isLooping ()->setBool (true , false );
817
-
818
816
const int seconds = 8 ;
819
817
820
818
std::thread controlThreadTest ([&stereoPanner, seconds]() {
@@ -865,16 +863,14 @@ struct ex_hrtf_spatialization : public labsound_example
865
863
866
864
audioClipNode->setBus (r, audioClip);
867
865
context->connect (panner, audioClipNode, 0 , 0 );
868
- audioClipNode->schedule (0.0 );
866
+ audioClipNode->schedule (0.0 , - 1 ); // -1 to loop forever
869
867
}
870
868
871
869
if (audioClipNode)
872
870
{
873
871
_nodes.push_back (audioClipNode);
874
872
_nodes.push_back (panner);
875
873
876
- audioClipNode->isLooping ()->setBool (true , false );
877
-
878
874
context->listener ()->setPosition ({0 , 0 , 0 });
879
875
panner->setVelocity (4 , 0 , 0 );
880
876
@@ -999,7 +995,7 @@ struct ex_misc : public labsound_example
999
995
{
1000
996
ContextRenderLock r (context.get (), " ex_misc" );
1001
997
1002
- pingping->BuildSubgraph (context);
998
+ pingping->BuildSubgraph (* context. get () );
1003
999
pingping->SetFeedback (.75f );
1004
1000
pingping->SetDelayIndex (lab::TempoSync::TS_16);
1005
1001
@@ -1692,7 +1688,7 @@ int main(int argc, char *argv[]) try
1692
1688
// We can optionally play for a number of iterations as a way of testing lifetime & memory issues.
1693
1689
for (int i = 0 ; i < iterations; ++i)
1694
1690
{
1695
- simple .ex ->play (argc, argv);
1691
+ granulation .ex ->play (argc, argv);
1696
1692
}
1697
1693
1698
1694
return EXIT_SUCCESS;
0 commit comments