Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on preloading sound files in iOS 7 simulator #61

Open
intiQuo opened this issue Oct 18, 2013 · 0 comments
Open

Crash on preloading sound files in iOS 7 simulator #61

intiQuo opened this issue Oct 18, 2013 · 0 comments

Comments

@intiQuo
Copy link

intiQuo commented Oct 18, 2013

Hi!
I had a crash on iOS 7 simulator, when I try to preload sound file. It's not depend of what kind I try to preload, background or effect sounds. On iOS 6 simulator and device with iOS 7 app works correctly.
Crash happensin init method when I want to take singleton of OALSimpleAudio :

- (id) init
{
    return [self initWithSources:kDefaultReservedSources];
}

If we look deeper, we can see in class ALWrapper, when we call method:

+ (ALCdevice*) openDevice:(NSString*) deviceName
{
    ALCdevice* device;
    @synchronized(self)
    {
        device = alcOpenDevice([deviceName UTF8String]);
        if(NULL == device)
        {
            OAL_LOG_ERROR(@"Could not open device %@", deviceName);
        }
    }
    return device;
}

deviceName is NULL.

Can anyone give me an answer how i can solve this problem?

Thanks.

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

No branches or pull requests

1 participant