Skip to content

Commit

Permalink
Replay/MTPReplayer warnings elimination
Browse files Browse the repository at this point in the history
  • Loading branch information
sitomani committed Feb 14, 2024
1 parent 516f92a commit adf3f70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 4champ/Replay/OpenMPT/MPTReplayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ - (NSArray*) getSamples
}
return sampleArray;
}

- (NSArray<NSString*>*) getInstruments
{
if (!currentOMPTFile) {
Expand Down
8 changes: 4 additions & 4 deletions 4champ/Replay/Replay.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ -(id)init
-(void) initAudio
{
//set up audio buffers for rendering
bufLeft = malloc(maxFrameSize * 2 * sizeof(UInt16));
bufRight = malloc(maxFrameSize * 2 * sizeof(UInt16));
bufLeft = malloc(maxFrameSize * 2 * sizeof(SInt16));
bufRight = malloc(maxFrameSize * 2 * sizeof(SInt16));

OSStatus status;

// Describe audio component
Expand All @@ -78,7 +78,7 @@ -(void) initAudio

// Get audio units
status = AudioComponentInstanceNew(inputComponent, &audioUnit);
//checkStatus(status);
checkStatus(status);

UInt32 flag = 1;
const int kOutputBus = 0;
Expand Down

0 comments on commit adf3f70

Please sign in to comment.