OH_AudioStreamBuilder_SetFrameSizeInCallback(builder, 320); // 设置320,实际是640
设置320,实际回调640,设置640,实际回调1280。
/*
- Set the data frame size for each callback, use this function if the application requires a specific number
- of frames for processing.
- The frame size should be at least the size device process at one time, and less than half the internal
- buffer capacity.
- @since 11
- @param builder Reference provided by OH_AudioStreamBuilder_Create()
- @param frameSize The data frame size for each callback.
- @return {@link #AUDIOSTREAM_SUCCESS} or an undesired error./
OH_AudioStream_Result OH_AudioStreamBuilder_SetFrameSizeInCallback(OH_AudioStreamBuilderbuilder,
int32_t frameSize);
frameSize是采样数还是字节数?