Skip to content

Commit

Permalink
Merge branch 'main' into feat/custom-sample-rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Makowski committed Jan 30, 2025
2 parents edcb833 + 59a8293 commit f417e66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native-audio-api/ios/core/IOSAudioPlayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
IOSAudioPlayer::IOSAudioPlayer(const std::function<void(AudioBus *, int)> &renderAudio)
: renderAudio_(renderAudio), audioBus_(0)
{
audioBus_ = new AudioBus(getSampleRate(), RENDER_QUANTUM_SIZE, CHANNEL_COUNT);

RenderAudioBlock renderAudioBlock = ^(AudioBufferList *outputData, int numFrames) {
int processedFrames = 0;

Expand Down

0 comments on commit f417e66

Please sign in to comment.