|
@@ -337,7 +337,6 @@
|
337
|
337
|
// Stop previous audio data retrieval
|
338
|
338
|
if (microphone != nil) {
|
339
|
339
|
[microphone stopFetchingAudio];
|
340
|
|
- microphone = nil;
|
341
|
340
|
}
|
342
|
341
|
|
343
|
342
|
// Remove display callback
|
|
@@ -398,7 +397,6 @@
|
398
|
397
|
// Stop previous audio data retrieval
|
399
|
398
|
if (microphone != nil) {
|
400
|
399
|
[microphone stopFetchingAudio];
|
401
|
|
- microphone = nil;
|
402
|
400
|
}
|
403
|
401
|
|
404
|
402
|
// Turn off all other LED menu items
|
|
@@ -543,7 +541,6 @@
|
543
|
541
|
// Stop previous audio data retrieval
|
544
|
542
|
if (microphone != nil) {
|
545
|
543
|
[microphone stopFetchingAudio];
|
546
|
|
- microphone = nil;
|
547
|
544
|
}
|
548
|
545
|
|
549
|
546
|
// Turn off all other LED menu items
|
|
@@ -633,7 +630,6 @@
|
633
|
630
|
// Stop previous audio data retrieval
|
634
|
631
|
if (microphone != nil) {
|
635
|
632
|
[microphone stopFetchingAudio];
|
636
|
|
- microphone = nil;
|
637
|
633
|
}
|
638
|
634
|
|
639
|
635
|
// Schedule next invocation for this animation...
|
|
@@ -678,7 +674,6 @@
|
678
|
674
|
// Stop previous audio data retrieval
|
679
|
675
|
if (microphone != nil) {
|
680
|
676
|
[microphone stopFetchingAudio];
|
681
|
|
- microphone = nil;
|
682
|
677
|
}
|
683
|
678
|
|
684
|
679
|
// Schedule next invocation for this animation...
|
|
@@ -737,9 +732,9 @@
|
737
|
732
|
foundDev = YES;
|
738
|
733
|
if (microphone != nil) {
|
739
|
734
|
[microphone stopFetchingAudio];
|
740
|
|
- microphone = nil;
|
|
735
|
+ } else {
|
|
736
|
+ microphone = [EZMicrophone microphoneWithDelegate:self];
|
741
|
737
|
}
|
742
|
|
- microphone = [EZMicrophone microphoneWithDelegate:self];
|
743
|
738
|
[microphone setDevice:dev];
|
744
|
739
|
[microphone startFetchingAudio];
|
745
|
740
|
break;
|
|
@@ -773,7 +768,6 @@
|
773
|
768
|
// Stop previous audio data retrieval
|
774
|
769
|
if (microphone != nil) {
|
775
|
770
|
[microphone stopFetchingAudio];
|
776
|
|
- microphone = nil;
|
777
|
771
|
}
|
778
|
772
|
|
779
|
773
|
NSColor *color = [staticColors valueForKey:key];
|