Skip to content

Android example #17

Description

@DavidVentura

Hi
Could you upload an Android example?
I've attempted to do that by just including cnfa/CNFA.h, but getting dlopen failed: cannot locate symbol "SL_IID_PLAY" and am not entirely sure what it is that I'm missing in my link step.

Activity

  1. DavidVentura commented on May 29, 2023

    @DavidVentura
    Author

    Well, linking OpenSLES and calling InitCNFAAndroid was enough to get audio working, though with the same callback, audio plays ~2x as fast (and pitch is ~2x higher)

    Which, after fiddling with the InitCNFAAndroid flags for a bit, I realized it sounds "correct" if I double up the sugBufferSize.
    Not sure why.

  2. cnlohr commented on May 29, 2023

    @cnlohr
    Member

    There's always mysteries in sound like that!

  3. cnlohr commented on May 29, 2023

    @cnlohr
    Member

    If you can document it a tad that'd be neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions