Skip to content

Commit

Permalink
Small fixes, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleidonKep99 committed Feb 27, 2025
1 parent 5e35686 commit a80fc81
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OmniConverter/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.0.51</VersionPrefix>
<VersionPrefix>1.0.0.77</VersionPrefix>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class FluidSynthRenderer : AudioRenderer
{
public Synth? handle { get; private set; } = null;
private bool noMoreData = false;
private bool noFx = false;

private List<int> _managedSfArray = [];

Expand Down Expand Up @@ -108,6 +109,8 @@ public FluidSynthRenderer(FluidSynthEngine fluidsynth) : base(fluidsynth, false)
handle.Gain = (float)tmp.Synth.Volume;
handle.SetInterpolationMethod(-1, interp);

noFx = _cachedSettings.Synth.DisableEffects;

// FluidSynth "thread-safe API" moment
lock (reference.SFLock)
{
Expand Down Expand Up @@ -175,7 +178,7 @@ public override unsafe int Read(float[] buffer, int offset, long delta, int coun
{
var offsetBuff = buff + offset;

handle.Process(count / 2, 2, bufPtr, 2, bufPtr);
handle.Process(count / 2, noFx ? 0 : 2, noFx ? null : bufPtr, 2, bufPtr);

for (int i = 0; i < count / 2; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion OmniConverter/Forms/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private void MIDILocation(object? sender, RoutedEventArgs e)
MIDI[] list = new MIDI[MIDIListView.SelectedItems.Count];
MIDIListView.SelectedItems.CopyTo(list, 0);

if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Process.Start("explorer.exe", $"/select,\"{list[0].Path}\"");
}
Expand Down
4 changes: 2 additions & 2 deletions OmniConverter/OmniConverter.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>link</TrimMode>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>link</TrimMode>
<OutputType>WinExe</OutputType>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ FFMpegCore: https://github.com/rosenbjerg/FFMpegCore
<br />
ManagedBass: https://github.com/ManagedBass/ManagedBass
<br />
NFluidSynth (This project uses [my fork](https://github.com/KaleidonKep99/nfluidsynth)): https://github.com/atsushieno/nfluidsynth
<br />
MIDIModificationFramework: https://github.com/arduano/MIDIModificationFramework
<br />
XSynth: https://github.com/BlackMIDIDevs/xsynth
<br />
FLParser (This project uses [Kaydax's](https://github.com/Kaydax/FLParser) fork): https://github.com/monadgroup/FLParser
<br />
Un4seen's BASS libraries: https://www.un4seen.com/bass.html
<br />
FluidSynth: https://www.fluidsynth.org

0 comments on commit a80fc81

Please sign in to comment.