Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -455,3 +455,7 @@ $RECYCLE.BIN/

# Extensions Projects
/[Ee]xtensions/

# vcpkg
/TuneLab/vcpkg/
/TuneLab/scripts/vcpkg-overlay/
6 changes: 5 additions & 1 deletion TuneLab/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using System.Threading.Tasks;
using System.Threading;
using System.IO.Pipes;
using System.Reflection;
using TuneLab.Audio.FFmpeg;

namespace TuneLab;

Expand Down Expand Up @@ -48,7 +50,9 @@ public override void OnFrameworkInitializationCompleted()
};

// init audio engine
AudioUtils.Init(new NAudioCodec());
// AudioUtils.Init(new NAudioCodec());
AudioUtils.Init(new FFmpegCodec(Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "ffmpeg")));
AudioEngine.SampleRate.Value = Settings.SampleRate;
AudioEngine.BufferSize.Value = Settings.BufferSize;
if (!string.IsNullOrEmpty(Settings.AudioDriver)) AudioEngine.CurrentDriver.Value = Settings.AudioDriver;
Expand Down
Loading
Loading