Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#22 Changed to implementation using short type #27

Merged
merged 5 commits into from
Sep 19, 2024
Merged

Conversation

AutumnSky1010
Copy link
Owner

close #22

@AutumnSky1010 AutumnSky1010 self-assigned this Sep 19, 2024
@AutumnSky1010 AutumnSky1010 linked an issue Sep 19, 2024 that may be closed by this pull request
@@ -70,7 +70,7 @@ public byte[] GetBytes(BitRateType bitRate)
var result = new List<byte>(Wave.Length);
foreach (var value in Wave)
{
result.Add((byte)(value / 256));
result.Add((byte)(value / 256 + 128));
Copy link
Owner Author

Choose a reason for hiding this comment

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

32767 / 256 + 128 = 255
-32768 / 256 + 128 = 0

@AutumnSky1010 AutumnSky1010 merged commit 79b34c9 into master Sep 19, 2024
1 check passed
@AutumnSky1010 AutumnSky1010 deleted the feature/#22 branch September 19, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ushort to short
1 participant