Skip to content

Commit

Permalink
fix NullReferenceException opening AsioOut by index. resolves #234
Browse files Browse the repository at this point in the history
  • Loading branch information
markheath committed Sep 5, 2017
1 parent c6ebcaa commit 9689153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NAudio/Wave/WaveOutputs/AsioOut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public AsioOut(int driverIndex)
{
throw new ArgumentException(String.Format("Invalid device number. Must be in the range [0,{0}]", names.Length));
}
InitFromName(this.driverName);
InitFromName(names[driverIndex]);
}

/// <summary>
Expand Down

0 comments on commit 9689153

Please sign in to comment.