Skip to content

Commit

Permalink
Merge pull request #25 from AutumnSky1010/bugfix/#24
Browse files Browse the repository at this point in the history
🐛 Stream closes in WaveWriter.
  • Loading branch information
AutumnSky1010 authored Jun 29, 2024
2 parents 8817ac2 + a9a7168 commit 10122e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SoundMaker/WaveFile/WaveWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void Write(string path)
/// <param name="stream">stream</param>
public void Write(Stream stream)
{
using var writer = new BinaryWriter(stream);
var writer = new BinaryWriter(stream);
foreach (var chunk in Chunks)
{
writer.Write(chunk.GetBytes());
Expand Down

0 comments on commit 10122e8

Please sign in to comment.