forked from KonajuGames/NVorbis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add parameter change event to packet provider interface
* Refactored decoder setup so parameter change can be handled * Rewrote packet peek/get logic for simplicity
- Loading branch information
Showing
6 changed files
with
254 additions
and
135 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace NVorbis | ||
{ | ||
/// <summary> | ||
/// Event data for when a logical stream has a parameter change. | ||
/// </summary> | ||
[Serializable] | ||
public class ParameterChangeEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Creates a new instance of <see cref="ParameterChangeEventArgs"/>. | ||
/// </summary> | ||
/// <param name="firstPacket">The first packet after the parameter change.</param> | ||
public ParameterChangeEventArgs(DataPacket firstPacket) | ||
{ | ||
FirstPacket = firstPacket; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the first packet after the parameter change. This would typically be the parameters packet. | ||
/// </summary> | ||
public DataPacket FirstPacket { get; private set; } | ||
} | ||
} |
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
Oops, something went wrong.