Comments (8)
So before the final deadlock, in the screenshot above, it locks the main thread for exactly 9 seconds in -[AEAudioController housekeeping]:
from theamazingaudioengine.
This sounds like an iOS bug to me - none of that is anywhere near the user code, so I'm not sure this can be fixed!
from theamazingaudioengine.
Ah, that's a bummer. It's definitely related to using the hardware video encoder after using TAAE, and then using TAAE again. For now I had to remove m4a support from my app to ship on time. :(
I'm wondering if I can record a .m4a another way by tricking the hardware video encoder to only write the audio frames into a .mp4 file, since it is essentially the same thing...
How resilient are TAAE's M4A files to interruptions like running out of battery or force quitting the app? The video encoder path allows you to chunk the file in increments as well to prevent data loss, but I haven't really tested it.
from theamazingaudioengine.
Perhaps! I think the problem might be the way the hardware has to be put into certain modes in order to utilize the embedded encoders; have you played around with changing the audio session category at strategic times?
I don't know about resilience to interruptions - it's all just using ExtAudioFile under the hood, though.
It might be worth considering writing PCM format (AIFF, etc), then converting when it's time to export, if all else fails (this is what Loopy does, incidentally).
from theamazingaudioengine.
Have you tried using the software m4a codec?
UInt32 codecManf = kAppleSoftwareAudioCodecManufacturer;
ExtAudioFileSetProperty(recAF, kExtAudioFileProperty_CodecManufacturer, sizeof(UInt32), &codecManf);
from theamazingaudioengine.
Closing this for now - I don't think this is a TAAE bug.
from theamazingaudioengine.
it's not a TAAE bug, so what's the reason?
from theamazingaudioengine.
I suspect it has something to do with the hardware video encoder. There might be problems when it's used in tandem with the hardware AAC encoder, too. If you're still having problems, try the software codec that @lijon mentioned above. I'd be interested to hear the result.
from theamazingaudioengine.
Related Issues (20)
- 1.5.7 not on Cocoapods HOT 2
- Open the dome,Bluetooth speakers will automatically stop working? HOT 1
- How can I set the preferredInput? Everytime I change it, it sets it back to previous.
- Stop doesn't work if the audioDescription preferred sampleRate is different than detected
- user AEAudioController Empty my control center
- Using play through channel ,but need to delay the playing
- Prepare and begin recording
- Is TheAmazingAudioEngine possible to perform audio synthesis?
- Can only record m4a type ? HOT 1
- 请问一下theamazingaudioengine 录音的时候如何过滤扬声器声音 HOT 2
- Hi, I need to create a visualizer like ZLHistogramAudioPlot. I try to use this code
- Create ZLHistogramAudioPlot like visualizer using TheAmazingAudioEngine
- React Native version?
- regionStartTime not work
- 可以绘制音波图吗
- Crash AEUtilities.h -[AEAudioController teardown] HOT 1
- demo 不清楚怎么使用的 可以讲一下吗
- Multiple samples not playing at the same time in iOS 14 HOT 5
- `AEAudioBufferListGetLength ()` has a incorrect implementation HOT 2
- How to export modified audio file?
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 theamazingaudioengine.