Skip to content

Commit

Permalink
Implement ChangeStreamFormat correctly (#353)
Browse files Browse the repository at this point in the history
This fixes a major sample rate bug when not at 44.1k in the auv2
  • Loading branch information
baconpaul committed Feb 22, 2025
1 parent 30ca919 commit a9ea7ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wrapasauv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,9 @@ OSStatus WrapAsAUV2::ChangeStreamFormat(AudioUnitScope inScope, AudioUnitElement
const AudioStreamBasicDescription& inNewFormat)
{
// LOGINFO("ChangedStreamFormat called {} {}", inScope, inNewFormat.mChannelsPerFrame);
return noErr;
auto res = ausdk::AUBase::ChangeStreamFormat(inScope, inElement, inPrevFormat, inNewFormat);

return res;
}

UInt32 WrapAsAUV2::SupportedNumChannels(const AUChannelInfo** outInfo)
Expand Down

0 comments on commit a9ea7ef

Please sign in to comment.