Comments (3)
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.
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.
Ok Fine !!
I will wait for your reply
from sfbaudioengine.
Related Issues (20)
- MAC_SDK_613.zip no longer available. HOT 1
- Build fails, unable to download MAC_SDK_620.zip from Monkey's Audio HOT 1
- SimplePlayer Crashes on iOS HOT 6
- Crash when importing in iOS APP
- Errors while uploading app archive to TestFlight HOT 6
- Please clarify the best way to include this project in an app for multiple devs/workstations HOT 2
- Play DSD in DoP mode will heard noise in the sound HOT 13
- mpg123 header includes seemingly using incorrect include type HOT 2
- Issues with building macOS Sample Player HOT 1
- Can't run in physical device HOT 3
- The opus file is seriously distorted, and only one side of the speaker has sound. HOT 3
- When the speex file is playing, only one side of the speaker has sound, and SFBAudioPlayer.totalTime is nil HOT 3
- I keep getting an error when converting to apple native format, like m4a aac HOT 4
- Total frames not calculated for Ogg Speex streams HOT 1
- When encoding to mp3, the bitrate is always 128kbps HOT 5
- LAME encoder settings are confusing HOT 1
- Whatβs the role of SFBFFmpegDecoder HOT 1
- How to set the output sampleRate HOT 1
- OPUS file duration in milliseconds HOT 3
- SFBFLACDecoder - decodeIntoBuffer - not decoding all frames HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfbaudioengine.