search for: arraywithobject

Displaying 4 results from an estimated 4 matches for "arraywithobject".

Did you mean: arraywithobjects
2011 Jun 20
3
[LLVMdev] C struct as function argument
...LLVMStructFuncCall(test_struct x) { NSLog(@"%d %d",x.x,x.y); return N(x.x + x.y); } -(void) testLLVMStructFuncCall { CGKModule* myMod = [CGKModule moduleWithName:@"llvm_structfunccall_test"]; CGKType* testStructType = [CGKType structTypeWithElementTypes:[NSArray arrayWithObjects:[CGKType intTypeWith32Bits],[CGKType intTypeWith32Bits],nil]]; CGKFunction* lfunc = [CGKFunction functionWithName:@"testLLVMStructFuncCall" types:[NSArray arrayWithObjects:[CGKType idType],testStructType,nil] intoModule:myMod]; CGKFunction* rfunc = [CGKBuilder createStandaloneCal...
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...kMaxSpeexFrameLength); encoded_frame_data_[0] = static_cast<char>(frame_length); speex_bits_reset(&bits_); NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSData *dataToSend = [NSData dataWithBytes:encoded_frame_data_ length:frame_length]; NSArray *array = [NSArray arrayWithObjects:dataToSend, [defs objectForKey:@"inLang"], nil]; NSLog(@"WriteToFile -> dataToSend: [%d]", [dataToSend length]); [mAudioStreamer performSelectorOnMainThread:@selector(sendDataToServer:) withObject:array waitUntilDone:YES]; } [pool drain]; } void SpeexRecorder::Open...
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...kMaxSpeexFrameLength); encoded_frame_data_[0] = static_cast<char>(frame_length); speex_bits_reset(&bits_); NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSData *dataToSend = [NSData dataWithBytes:encoded_frame_data_ length:frame_length]; NSArray *array = [NSArray arrayWithObjects:dataToSend, [defs objectForKey:@"inLang"], nil]; NSLog(@"WriteToFile -> dataToSend: [%d]", [dataToSend length]); [mAudioStreamer performSelectorOnMainThread:@selector(sendDataToServer:) withObject:array waitUntilDone:YES]; } [pool drain]; } void SpeexRecorder::OpenN...
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...swfdec_player_get_default_size(_private->_player, &width, &height); [self setBounds:NSMakeRect(0.0, 0.0, width, height)]; [self setNeedsDisplay:YES]; } [[NSRunLoop currentRunLoop] performSelector:@selector(scheduleNextEvent) target:self argument:nil order:100 modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]]; } else { NSTimeInterval fMillisecondsToNextEvent = millisecondsToNextEvent; fMillisecondsToNextEvent /= 1000000.0; // translate to seconds so we can use NSTimer _private->_timeOfLastTimer = CFAbsoluteTimeGetCurrent(); _private->_nextEventTimer = [[NSTim...