Skip to content

Commit

Permalink
[osx] fixed error in CCoreAudioHardware::FormatsList, which is not ac…
Browse files Browse the repository at this point in the history
…tually used anywhere :)
  • Loading branch information
davilla committed Feb 11, 2013
1 parent 0df13c9 commit 1145deb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ AudioStreamBasicDescription* CCoreAudioHardware::FormatsList(AudioStreamID strea
}

// Add a terminating ID:
list[listSize/sizeof(AudioStreamID)].mFormatID = 0;
list[listSize/sizeof(AudioStreamBasicDescription)].mFormatID = 0;

return list;
}
Expand Down

2 comments on commit 1145deb

@Memphiz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If its not used we could also just remove it no?

@davilla
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the second step... remove all functions that are not used. :) This was something I discovered in development on CoreAudioSink where the code IS used. :)

Please sign in to comment.