Giter Site home page Giter Site logo

Comments (3)

0x8badf00d avatar 0x8badf00d commented on May 20, 2024

When I ran the app on my device in debug mode it crashed with EXC_BAD_ACCESS. Looking at the crash log on my device: EXC_ARM_DA_ALIGN got me thinking its memory alignment issue and it was at this line -> OSAtomicAdd64Barrier(framesDecoded, &mFramesDecoded); // mFramesDecoded is misaligned.

I had declared the alignment explicitly. In AudioPlayer.h:

int64_t mFramesDecoded __attribute__ ((aligned (8)));; int64_t mFramesRendered __attribute__((aligned (8))); int64_t mFramesRenderedLastPass __attribute__((aligned (8)));

And in DecoderStateData.h:

SInt64 mTimeStamp __attribute__((aligned (8))); SInt64 mTotalFrames __attribute__((aligned (8))); volatile SInt64 mFramesRendered __attribute__((aligned (8))); SInt64 mFrameToSeek __attribute__((aligned (8)));

This only prevented app from crashing. Although audio wouldn't play. Need to further debug the problem.

from sfbaudioengine.

sbooth avatar sbooth commented on May 20, 2024

The last time I tried this on my iPhone was before iOS 5 came out, so I will investigate a bit when I have some free time.

from sfbaudioengine.

Monika-Tapadiya avatar Monika-Tapadiya commented on May 20, 2024

Ok Fine !!

I will wait for your reply

from sfbaudioengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.