-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
111 additions
and
98 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Fingerprinter.Audio | ||
{ | ||
public class AudioProperties | ||
{ | ||
/// <summary> | ||
/// Gets the sample rate of the audio source. | ||
/// </summary> | ||
public int SampleRate { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the sample rate of the audio source (must be 16 bits per sample). | ||
/// </summary> | ||
public int BitDepth { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the number of channels. | ||
/// </summary> | ||
public int Channels { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the duration of the audio source (in seconds). | ||
/// </summary> | ||
public int Duration { get; private set; } | ||
|
||
public AudioProperties() | ||
: this(0, 0, 0, 0) | ||
{ | ||
} | ||
|
||
public AudioProperties(int sampleRate, int bitDepth, int channels, int duration) | ||
{ | ||
this.SampleRate = sampleRate; | ||
this.BitDepth = bitDepth; | ||
this.Channels = channels; | ||
this.Duration = duration; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NAudio" version="1.7.2" targetFramework="net40-Client" /> | ||
<package id="NAudio" version="1.7.3" targetFramework="net40-client" /> | ||
</packages> |