Skip to content

IOStream's method append(_ sampleBuffer:) not work as expected #1514

Answered by shogo4405
RainyTunes asked this question in Q&A
Discussion options

You must be logged in to vote

If it exceeds approximately 0.371 seconds (1024 * 16 / 44100), it will exceed the capacity of the circular buffer and not work as intended. It might be possible to achieve what you want by appending in increments of 0.1 seconds.

In addition to CMSampleBuffer, you can also use AVAudioBuffer. With AVAudioEngine, there are methods to mix audio. Please consider this for your needs as well.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shogo4405
Comment options

Answer selected by RainyTunes
@RainyTunes
Comment options

@shogo4405
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1513 on July 16, 2024 12:32.