Changeset 3604
- Timestamp:
- 03/06/07 21:06:58 (1 year ago)
- Files:
-
- trunk/Controllers/JVSpeechController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controllers/JVSpeechController.m
r3418 r3604 13 13 if( ( self = [super init] ) ) { 14 14 _speechQueue = [[NSMutableArray alloc] initWithCapacity:15]; 15 _synthesizers = [[NSArray alloc] initWithObjects:[[[NSSpeechSynthesizer alloc] init ] autorelease], [[[NSSpeechSynthesizer alloc] init] autorelease], [[[NSSpeechSynthesizer alloc] init] autorelease], nil];15 _synthesizers = [[NSArray alloc] initWithObjects:[[[NSSpeechSynthesizer alloc] initWithVoice:nil] autorelease], [[[NSSpeechSynthesizer alloc] initWithVoice:nil] autorelease], [[[NSSpeechSynthesizer alloc] initWithVoice:nil] autorelease], nil]; 16 16 17 for( int i = 0; i < 3; i++ )17 for( unsigned i = 0; i < [_synthesizers count]; i++ ) 18 18 [[_synthesizers objectAtIndex:i] setDelegate:self]; 19 19 } … … 33 33 34 34 - (void) startSpeakingString:(NSString *) string usingVoice:(NSString *) voice { 35 for( int i = 0; i < 3; i++ ) {35 for( unsigned i = 0; i < [_synthesizers count]; i++ ) { 36 36 NSSpeechSynthesizer *synth = [_synthesizers objectAtIndex:i]; 37 37 if( ! [synth isSpeaking] ) {
