-
Notifications
You must be signed in to change notification settings - Fork 49
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
26 changed files
with
232 additions
and
209 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,7 @@ | ||
namespace AudioBand.AudioSource | ||
{ | ||
public interface IAudioSourceContext | ||
{ | ||
IAudioSourceLogger Logger { get; } | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/AudioBand.Connector/IConnectorLogger.cs → ...dioBand.AudioSource/IAudioSourceLogger.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
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
2 changes: 1 addition & 1 deletion
2
...nd.Connector/TrackInfoChangedEventArgs.cs → ....AudioSource/TrackInfoChangedEventArgs.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
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
using AudioBand.AudioSource; | ||
|
||
namespace AudioBand | ||
{ | ||
internal class AudioSourceContext : IAudioSourceContext | ||
{ | ||
public IAudioSourceLogger Logger { get; } | ||
|
||
public AudioSourceContext(string audioSourceName) | ||
{ | ||
Logger = new AudioSourceLogger(audioSourceName); | ||
} | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
src/AudioBand/ConnectorLogger.cs → src/AudioBand/AudioSourceLogger.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
This file was deleted.
Oops, something went wrong.
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 Svg; | ||
using System.Drawing; | ||
using System.Drawing.Drawing2D; | ||
|
||
namespace AudioBand | ||
{ | ||
internal static class Extensions | ||
{ | ||
public static Bitmap ToBitmap(this SvgDocument svg) | ||
{ | ||
var bmp = new Bitmap((int)svg.Width.Value, (int)svg.Height.Value); | ||
using (var graphics = Graphics.FromImage(bmp)) | ||
{ | ||
graphics.SmoothingMode = SmoothingMode.AntiAlias; | ||
graphics.CompositingQuality = CompositingQuality.HighQuality; | ||
graphics.InterpolationMode = InterpolationMode.High; | ||
svg.Draw(graphics); | ||
return bmp; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.