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

CAStreamBasicDescription Deprecated Warnings #82

Open
RhysLindmark opened this issue Apr 30, 2015 · 0 comments
Open

CAStreamBasicDescription Deprecated Warnings #82

RhysLindmark opened this issue Apr 30, 2015 · 0 comments

Comments

@RhysLindmark
Copy link

In ObjectAL 2.5, I get the 4 deprecation warnings in CAStreamBasicDescription in this method:

void    CAStreamBasicDescription::NormalizeLinearPCMFormat(AudioStreamBasicDescription& ioDescription)
{
    //  the only thing that changes is to make mixable linear PCM into the canonical linear PCM format
    if((ioDescription.mFormatID == kAudioFormatLinearPCM) && ((ioDescription.mFormatFlags & kIsNonMixableFlag) == 0))
    {
        //  the canonical linear PCM format
        ioDescription.mFormatFlags = kAudioFormatFlagsCanonical;
        ioDescription.mBytesPerPacket = SizeOf32(AudioSampleType) * ioDescription.mChannelsPerFrame;
        ioDescription.mFramesPerPacket = 1;
        ioDescription.mBytesPerFrame = SizeOf32(AudioSampleType) * ioDescription.mChannelsPerFrame;
        ioDescription.mBitsPerChannel = 8 * SizeOf32(AudioSampleType);
    }
}

Each of the warnings says:
X is deprecated: the concept of canonical formats is deprecated

I also get 6 warnings in the .h file (all of which are the same warning type).

It seems like this SO post has the answer? http://stackoverflow.com/questions/26005674/audiounitsampletype-deprecated-on-ios8-my-render-callback-is-not-working-now

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