作成者:connect-media 作成日:月, 08/12/2013 - 07:00
With the current iOS SDK it seams to be impossible to use fingerprintMIDStreamfromMic (alteast with the simulator).
*** Assertion failure in -[GNOperationFingerprintStreamFromMic doResultReport], /home/mobile/z-13667-ecma-3.1/cddb-clients/mmid/iOSMobileSDK/3.1/Classes/Private/GNOperationCommonTask.m:193
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'mismatched result objects' *** First throw call stack: (0x2fa7012 0x21e5e7e 0x2fa6e78 0xf7e665 0x9005a 0x21f96b0 0xf28765 0x2f2af3f 0x2f2a96f 0x2f4d734 0x2f4cf44 0x2f4ce1b 0x2f017e3 0x2f01668 0x42cffc 0x297d 0x28a5) libc++abi.dylib: terminate called throwing an exception
Example code:
@interface FPReady : NSObject <GNFingerprintResultReady>{ } @end @implementation FPReady - (void) GNResultReady: (GNFingerprintResult*) result { NSLog(@"Got fingerprint result"); } @end
[GNOperations fingerprintMIDStreamFromMic:[FPReady alloc] config:[GNConfig init:@"xxx"];
Mustafa Yavuz | 09/05/2013 - 07:53
I have the same problem, can any one help to solve this issue?
Mustafa Yavuz | 09/05/2013 - 10:10
Instead of using fingerprintMIDStreamFromMic, I am trying to us fingerprintMIDStreamFromPcm where I get the pcm datas from the microphone record through audioBufferDidBecomeReady callback function. I have not finished yet but it will probably work.
Mustafa Yavuz | 09/05/2013 - 10:11
Instead of using fingerprintMIDStreamFromMic, I am trying to us fingerprintMIDStreamFromPcm where I get the pcm datas from the microphone record through audioBufferDidBecomeReady callback function. I have not finished yet but it will probably work.