Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

file can't open #12

Open
trevor-sonic opened this issue Nov 6, 2020 · 2 comments
Open

file can't open #12

trevor-sonic opened this issue Nov 6, 2020 · 2 comments

Comments

@trevor-sonic
Copy link

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.

@Luccifer
Copy link
Owner

Luccifer commented Nov 6, 2020

What code/description of error?

@trevor-sonic
Copy link
Author

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);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants