BPM-Analyser icon indicating copy to clipboard operation
BPM-Analyser copied to clipboard

file can't open

Open trevor-sonic opened this issue 5 years ago • 2 comments

Hi, I tried the example app on Xcode 12.1 with

let url = Bundle.main.url(forResource: "TestMusic", withExtension: "m4a")

(Because media selector is not working on simulator) But I receive file can't open error message. I tried different files result the same. Superpowered.mm gives the error

- (NSString *)offlineAnalyze:(NSURL *)url {
    // Open the input file.
    SuperpoweredDecoder *decoder = new SuperpoweredDecoder();
    const char *openError = decoder->open([[url absoluteString] UTF8String], false, 0, 0);
    if (openError) {
        NSLog(@"open error: %s", openError);
        delete decoder;
        NSString *st = @"";
        return st;
    };

My url is correct I did nil check but maybe something is deprecated? Thank you in advance.

trevor-sonic avatar Nov 06 '20 20:11 trevor-sonic

What code/description of error?

Luccifer avatar Nov 06 '20 20:11 Luccifer

I don't have code error code, output is just: "Can't open this file." in Superpowered.mm line 21 NSLog(@"open error: %s", openError);

trevor-sonic avatar Nov 06 '20 23:11 trevor-sonic