Selaa lähdekoodia

1.修改文案-云课堂
2.音叉和节拍器不同时播放。

Steven 1 vuosi sitten
vanhempi
commit
9194648842

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
KulexiuForStudent/KulexiuForStudent/InstitutionModule/Home/Model/cloudCourse_Ani.json


+ 6 - 1
KulexiuForStudent/KulexiuForStudent/Module/Widget/Controller/ToneTuningViewController.m

@@ -310,6 +310,8 @@
         case TUNINGACTION_PLAY:      // 播放音叉
         case TUNINGACTION_PLAY:      // 播放音叉
         {
         {
             [self startForkPlay];
             [self startForkPlay];
+            // 停止播放节拍器
+            [self stopPlayBeat];
         }
         }
             break;
             break;
         case TUNINGACTION_STOP:      // 停止音叉
         case TUNINGACTION_STOP:      // 停止音叉
@@ -320,6 +322,8 @@
         case TUNINGACTION_BEATPLAY:
         case TUNINGACTION_BEATPLAY:
         {
         {
             [self startPlayBeat];
             [self startPlayBeat];
+            // 停止音叉
+            [self stopForkPlay];
         }
         }
             break;
             break;
         case TUNINGACTION_BEATSTOP:
         case TUNINGACTION_BEATSTOP:
@@ -411,7 +415,8 @@
         MJWeakSelf;
         MJWeakSelf;
         [_forkView forkSettingAction:^(CGFloat frequence, BOOL isSure) {
         [_forkView forkSettingAction:^(CGFloat frequence, BOOL isSure) {
             NSLog(@"----- frequence %f", frequence);
             NSLog(@"----- frequence %f", frequence);
-            
+            // 停止播放节拍器
+            [weakSelf stopPlayBeat];
             weakSelf.chooseFrequence = frequence;
             weakSelf.chooseFrequence = frequence;
             if (weakSelf.bodyView.isPlaying) {
             if (weakSelf.bodyView.isPlaying) {
                 CGFloat changefrequence = frequence / A4_FREQUENCE_INTABLE * self.A4Frequence;
                 CGFloat changefrequence = frequence / A4_FREQUENCE_INTABLE * self.A4Frequence;

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä