-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是不是不支持m4a格式的音频了? #2
Comments
你好,我试了一下并没有发现什么问题,动画能正常显示呢。测试环境是 Xcode 10.2.1 模拟器是 iPhone XS 12.2 |
你好,我试了下直接播放本地文件是没问题的,我是在线播放fetch AVAudioPCMBuffer的,但是这样得到的buffer的format.sampleRate和前面的不一样,前面的是48000,后面的是32000。 |
如果方便的话提供你的代码我们来一起研究下 |
抱歉,这么晚才回复。我下载代码并运行了,大概听了10多分钟吧,还是没能复现你所说的那个问题 buffer.frameLength = AVAudioFrameCount(2048) 因为你换了播放器之后,这里的设置肯定就没必要了。这里的buffer.frameLength都是4096,我暂时没找到这个播放器可以设置 tap 这个buffer大小的地方。 |
你好,我看了下 |
我用这个podcast http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_82.m4a 做了个测试,会崩在findMaxAmplitude这个函数。
The text was updated successfully, but these errors were encountered: