Forums: 

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"];

I have the same problem, can any one help to solve this issue?

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.

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.

Forum Discussions