Skip to content

Commit

Permalink
Merge pull request kstenerud#23 from jparise/warnings
Browse files Browse the repository at this point in the history
Silence a few strict LLVM warnings
  • Loading branch information
kstenerud committed Jan 23, 2012
2 parents 004d970 + 642853a commit 9fd525f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ObjectAL/ObjectAL/Support/OALAudioFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ - (id) initWithUrl:(NSURL*) urlIn

streamDescription.mBytesPerFrame = streamDescription.mChannelsPerFrame * streamDescription.mBitsPerChannel / 8;
streamDescription.mFramesPerPacket = 1;
streamDescription.mBytesPerPacket = streamDescription.mBytesPerFrame * streamDescription.mFramesPerPacket;
streamDescription.mBytesPerPacket = streamDescription.mBytesPerFrame * 1 /* streamDescription.mFramesPerPacket */;

// Set the new audio format
if(noErr != (error = ExtAudioFileSetProperty(fileHandle,
Expand Down
1 change: 1 addition & 0 deletions ObjectAL/ObjectAL/Support/OALTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ + (void) notifyAudioSessionError:(OSStatus)errorCode
#else
#pragma unused(function)
#pragma unused(description)
#pragma unused(errorString)
#endif /* OBJECTAL_CFG_LOG_LEVEL > 0 */

if(postNotification)
Expand Down

0 comments on commit 9fd525f

Please sign in to comment.