实现iOS的音频输出;修复iOS下钢琴卷帘处无法拖动的问题#108
Open
jiPku wants to merge 6 commits into
Open
Conversation
|
I think there might be an issue with AVAudioEngine. My song played for a while but then stopped halfway through. My app became +10GB large and I eventually ran out of storage. I am not sure if there is a way to delete the temp WAVs that are already stored on the device. I ran it on an iphone12 mini. I started seeing the following logs over and over listed down below. I had to delete the app and reinstall it. |
Contributor
Author
该Pull request目前仅实现了部分功能以验证部署在iOS平台上的可行性,我们会在项目趋于稳定后重新评估在iOS平台上实现的可能! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
iOS: 实现 AVAudioEngineOutput 并改进 ObjectProvider 初始化流程
iOS 音频输出实现:
OpenUtauMobile/Platforms/iOS/Utils/Audio/AVAudioEngineOutput.cs中新增了AVAudioEngineOutput类。该类基于 AVFoundation 和 NAudio 实现了
IAudioOutput,支持实际音频播放、临时 WAV 渲染以及资源清理。Object Provider 初始化更新:
OpenUtauMobile/Utils/ObjectProvider.cs中的ObjectProvider.Initialize()。在 iOS 平台上实例化
AVAudioEngineOutput,若初始化失败则自动回退到DummyAudioOutput,并记录所选音频输出类型的日志。