Skip to content

Commit

Permalink
ref - Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AptiviCEO committed Aug 29, 2023
1 parent c40f17d commit d85e306
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 68 deletions.
7 changes: 0 additions & 7 deletions BassBoom.Basolia/Format/AudioInfoTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@

using BassBoom.Native.Runtime;
using BassBoom.Native.Interop.Analysis;
using BassBoom.Native.Interop.Play;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BassBoom.Native.Interop.Init;
using BassBoom.Basolia.File;

namespace BassBoom.Basolia.Format
{
Expand Down
7 changes: 0 additions & 7 deletions BassBoom.Basolia/Format/FormatTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using BassBoom.Native.Runtime;
using BassBoom.Native.Interop.Analysis;
using BassBoom.Native.Interop.Play;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BassBoom.Native.Interop.Init;
using BassBoom.Basolia.File;

namespace BassBoom.Basolia.Format
{
Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Basolia/Playback/PlaybackTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
using BassBoom.Native.Interop.LowLevel;
using BassBoom.Native.Runtime;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BassBoom.Basolia.Devices;

Expand Down
9 changes: 1 addition & 8 deletions BassBoom.Native/Interop/Analysis/NativeFormats.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

// BassBoom Copyright (C) 2023 Aptivi
// BassBoom Copyright (C) 2023 Aptivi
//
// This file is part of BassBoom
//
Expand All @@ -16,12 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

namespace BassBoom.Native.Interop.Analysis
{
public enum mpg123_enc_enum
Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Analysis/NativeMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Analysis/NativeParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Analysis/NativeStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Init/NativeDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace BassBoom.Native.Interop.Init
Expand Down
8 changes: 3 additions & 5 deletions BassBoom.Native/Interop/Init/NativeError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace BassBoom.Native.Interop.Init
Expand Down Expand Up @@ -85,13 +82,14 @@ public static unsafe class NativeError
/// MPG123_EXPORT const char* mpg123_plain_strerror(int errcode);
/// </summary>
[DllImport(LibraryTools.LibraryName, CharSet = CharSet.Ansi)]
internal static extern IntPtr mpg123_plain_strerror(int errcode);
[return: MarshalAs(UnmanagedType.LPStr)]
internal static extern string mpg123_plain_strerror(int errcode);

/// <summary>
/// MPG123_EXPORT const char* mpg123_strerror(mpg123_handle *mh);
/// </summary>
[DllImport(LibraryTools.LibraryName, CharSet = CharSet.Ansi)]
internal static extern IntPtr mpg123_strerror(mpg123_handle* mh);
internal static extern string mpg123_strerror(mpg123_handle* mh);

/// <summary>
/// MPG123_EXPORT int mpg123_errcode(mpg123_handle *mh);
Expand Down
2 changes: 0 additions & 2 deletions BassBoom.Native/Interop/Init/NativeInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace BassBoom.Native.Interop.Init
Expand Down
2 changes: 0 additions & 2 deletions BassBoom.Native/Interop/LowLevel/NativeLowIo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
7 changes: 2 additions & 5 deletions BassBoom.Native/Interop/Output/NativeOutputLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;
using BassBoom.Native.Interop.Analysis;

namespace BassBoom.Native.Interop.Output
Expand Down Expand Up @@ -119,7 +116,7 @@ public static unsafe class NativeOutputLib
/// MPG123_EXPORT const char* out123_strerror(out123_handle *ao);
/// </summary>
[DllImport(LibraryTools.LibraryNameOut, CharSet = CharSet.Ansi)]
internal static extern IntPtr out123_strerror(out123_handle* ao);
internal static extern string out123_strerror(out123_handle* ao);

/// <summary>
/// MPG123_EXPORT int out123_errcode(out123_handle *ao);
Expand All @@ -131,7 +128,7 @@ public static unsafe class NativeOutputLib
/// MPG123_EXPORT const char* out123_plain_strerror(int errcode);
/// </summary>
[DllImport(LibraryTools.LibraryNameOut, CharSet = CharSet.Ansi)]
internal static extern IntPtr out123_plain_strerror(int errcode);
internal static extern string out123_plain_strerror(int errcode);

/// <summary>
/// MPG123_EXPORT int out123_set_buffer(out123_handle *ao, size_t buffer_bytes);
Expand Down
2 changes: 0 additions & 2 deletions BassBoom.Native/Interop/Play/NativeInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Play/NativeOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Play/NativePositioning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
3 changes: 0 additions & 3 deletions BassBoom.Native/Interop/Play/NativeVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BassBoom.Native.Interop.Init;

Expand Down
2 changes: 0 additions & 2 deletions BassBoom.Native/Runtime/Mpg123Instance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
using BassBoom.Native.Interop;
using BassBoom.Native.Interop.Init;
using BassBoom.Native.Interop.Output;
using Microsoft.Win32.SafeHandles;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
Expand Down
1 change: 0 additions & 1 deletion BassBoom/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Input;
using Avalonia.Interactivity;
using BassBoom.Basolia;
using BassBoom.Basolia.Devices;
Expand Down
4 changes: 1 addition & 3 deletions BassBoom/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

using Avalonia.Controls;
using BassBoom.Basolia;
using BassBoom.Basolia.File;
using BassBoom.Basolia.Format;

namespace BassBoom.Views;

Expand All @@ -31,4 +29,4 @@ public MainWindow()
InitBasolia.Init();
InitializeComponent();
}
}
}

0 comments on commit d85e306

Please sign in to comment.