-
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
ChannelMergerNode
and ChannelSplitterNode
.
- Loading branch information
1 parent
1ea3566
commit c9edb3e
Showing
7 changed files
with
92 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
(157, 200), | ||
(202, 252), | ||
(254, 254), | ||
(285, 315), | ||
(285, 333), | ||
(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
19 changes: 19 additions & 0 deletions
19
src/KristofferStrube.Blazor.WebAudio/Options/ChannelMergerOptions.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,19 @@ | ||
using KristofferStrube.Blazor.WebIDL.Exceptions; | ||
|
||
namespace KristofferStrube.Blazor.WebAudio.Options; | ||
|
||
|
||
/// <summary> | ||
/// This specifies the options to use in constructing a <see cref="ChannelMergerNode"/>. | ||
/// </summary> | ||
/// <remarks><see href="https://www.w3.org/TR/webaudio/#ChannelMergerOptions">See the API definition here</see>.</remarks> | ||
public class ChannelMergerOptions : AudioNodeOptions | ||
{ | ||
/// <summary> | ||
/// The number inputs for the <see cref="ChannelMergerNode"/>. | ||
/// </summary> | ||
/// <remarks> | ||
/// It throws an <see cref="IndexSizeErrorException"/> if it is less than <c>1</c> or larger than the supported number of channels when used for constructing a <see cref="ChannelMergerNode"/>. | ||
/// </remarks> | ||
public ulong NumberOfInputs { get; set; } = 6; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/KristofferStrube.Blazor.WebAudio/Options/ChannelSplitterOptions.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,18 @@ | ||
using KristofferStrube.Blazor.WebIDL.Exceptions; | ||
|
||
namespace KristofferStrube.Blazor.WebAudio.Options; | ||
|
||
/// <summary> | ||
/// This specifies the options to use in constructing a <see cref="ChannelSplitterNode"/>. | ||
/// </summary> | ||
/// <remarks><see href="https://www.w3.org/TR/webaudio/#ChannelSplitterOptions">See the API definition here</see>.</remarks> | ||
public class ChannelSplitterOptions : AudioNodeOptions | ||
{ | ||
/// <summary> | ||
/// The number inputs for the <see cref="ChannelSplitterNode"/>. | ||
/// </summary> | ||
/// <remarks> | ||
/// It throws an <see cref="IndexSizeErrorException"/> if it is less than <c>1</c> or larger than the supported number of channels when used for constructing a <see cref="ChannelSplitterNode"/>. | ||
/// </remarks> | ||
public ulong NumberOfInputs { get; set; } = 6; | ||
} |
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