-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for the
ConvolverNode
.
- Loading branch information
1 parent
1fee903
commit a213543
Showing
8 changed files
with
110 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
(157, 200), | ||
(202, 252), | ||
(254, 254), | ||
(285, 343), | ||
(285, 355), | ||
(388, 396), | ||
(446, 456), | ||
(461, 468) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/KristofferStrube.Blazor.WebAudio/Options/ConvolverOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace KristofferStrube.Blazor.WebAudio.Options; | ||
|
||
/// <summary> | ||
/// This specifies options for constructing a <see cref="ConvolverNode"/>. | ||
/// </summary> | ||
/// <remarks><see href="https://www.w3.org/TR/webaudio/#ConvolverOptions">See the API definition here</see>.</remarks> | ||
public class ConvolverOptions : AudioNodeOptions | ||
{ | ||
/// <summary> | ||
/// The desired buffer for the <see cref="ConvolverNode"/>. This buffer will be normalized according to the value of <see cref="DisableNormalization"/>. | ||
/// </summary> | ||
[JsonPropertyName("buffer")] | ||
public AudioBuffer? Buffer { get; set; } | ||
|
||
/// <summary> | ||
/// The opposite of the desired initial value for <see cref="ConvolverNode.GetNormalizeAsync"/>. | ||
/// </summary> | ||
[JsonPropertyName("disableNormalization")] | ||
public bool DisableNormalization { get; set; } = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters