Skip to content

Commit

Permalink
* Misc Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ioctlLR committed Feb 7, 2013
1 parent 1d8840a commit 7254a53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NVorbis.NAudioSupport.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<description>NAudio support for NVorbis</description>
<summary>NAudio support for NVorbis</summary>
<releaseNotes>- Added new constructor for Stream
- Cleanup & Optimizations</releaseNotes>
- Cleanup and Optimizations</releaseNotes>
<language>en-US</language>
<tags>audio c# .NET sound vorbis</tags>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion NVorbis.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<description>A fully managed implementation of a Xiph.org Foundation Ogg Vorbis decoder.</description>
<summary>A managed Xiph.org Foundation Ogg Vorbis decoder</summary>
<releaseNotes>- Make Ogg container code thread-safe
- Cleanup & Optimizations
- Cleanup and Optimizations
- Change seek to use page's GranulePosition on every page instead of continuing previous count (this is only an issue in broken files)</releaseNotes>
<language>en-US</language>
<tags>ogg vorbis xiph audio c# sound .NET</tags>
Expand Down
2 changes: 1 addition & 1 deletion NVorbis/IVorbisStreamStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace NVorbis
public interface IVorbisStreamStatus
{
/// <summary>
/// Gets the counters for latency & bitrate calculations, as well as overall bit counts
/// Gets the counters for latency and bitrate calculations, as well as overall bit counts
/// </summary>
void ResetStats();

Expand Down
2 changes: 1 addition & 1 deletion NVorbis/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static internal float ClipValue(float value, ref bool clipped)

static internal float ConvertFromVorbisFloat32(uint bits)
{
// do as much as possible with bit tricks
// do as much as possible with bit tricks in integer math
var sign = ((int)bits >> 31); // sign-extend to the full 32-bits
var exponent = (double)((int)((bits & 0x7fe00000) >> 21) - 788); // grab the exponent, remove the bias, store as double (for the call to System.Math.Pow(...))
var mantissa = (float)(((bits & 0x1fffff) ^ sign) + (sign & 1)); // grab the mantissa and apply the sign bit. store as float
Expand Down

0 comments on commit 7254a53

Please sign in to comment.