Skip to content

Commit

Permalink
WavPackに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Ojii committed Dec 31, 2021
1 parent 265b8ac commit fc21a1d
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 7 deletions.
10 changes: 4 additions & 6 deletions LoopMusicPlayer/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public MainWindow() : this(new Builder("MainWindow.glade")) { }
private MainWindow(Builder builder) : base(builder.GetRawOwnedObject("MainWindow"))
{
this.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly().GetManifestResourceStream("LoopMusicPlayer.icon.ico"));
Bass.Init(Flags: DeviceInitFlags.Frequency);
Player.Init(AppContext.BaseDirectory);

Bass.Configure(Configuration.UpdatePeriod, 1);
Bass.Configure(Configuration.PlaybackBufferLength, 50);
Expand Down Expand Up @@ -393,8 +393,8 @@ private bool onframetick(Widget widget, Gdk.FrameClock frame_clock)
{
this.player.Dispose();
this.player = null;
Bass.Free();
Bass.Init();
Player.Free();
Player.Init(AppContext.BaseDirectory);

this._labeltitle.Text = "Device Disconnected";
this._labelpath.Text = "";
Expand Down Expand Up @@ -503,9 +503,7 @@ private void DrawingArea_OnDraw(object o, DrawnArgs args)
private void Window_DeleteEvent(object sender, DeleteEventArgs a)
{
this.player?.Dispose();
Bass.Pause();
Bass.Stop();
Bass.Free();
Player.Free();
Application.Quit();
}

Expand Down
Binary file added bin/net6.0/dll/linux-x64/libbassdsd.so
Binary file not shown.
Binary file added bin/net6.0/dll/linux-x64/libbasswv.so
Binary file not shown.
Binary file added bin/net6.0/dll/linux-x86/libbassdsd.so
Binary file not shown.
Binary file added bin/net6.0/dll/linux-x86/libbasswv.so
Binary file not shown.
Binary file added bin/net6.0/dll/osx-x64/libbassdsd.dylib
Binary file not shown.
Binary file added bin/net6.0/dll/osx-x64/libbasswv.dylib
Binary file not shown.
Binary file added bin/net6.0/dll/win-x64/bassdsd.dll
Binary file not shown.
Binary file added bin/net6.0/dll/win-x64/basswv.dll
Binary file not shown.
Binary file added bin/net6.0/dll/win-x86/bassdsd.dll
Binary file not shown.
Binary file added bin/net6.0/dll/win-x86/basswv.dll
Binary file not shown.
15 changes: 15 additions & 0 deletions bin/net6.0/licenses/BassDsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Licence
=======
BASSDSD is free to use with BASS.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, BASSDSD IS PROVIDED
"AS IS", WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND/OR FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS SHALL NOT BE HELD
LIABLE FOR ANY DAMAGE THAT MAY RESULT FROM THE USE OF BASSDSD. YOU USE
BASSDSD ENTIRELY AT YOUR OWN RISK.

Usage of BASSDSD indicates that you agree to the above conditions.

All trademarks and other registered names contained in the BASSDSD
package are the property of their respective owners.
15 changes: 15 additions & 0 deletions bin/net6.0/licenses/BassWv.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Licence
=======
BASSWV is free to use with BASS.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, BASSWV IS PROVIDED
"AS IS", WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND/OR FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS SHALL NOT BE HELD
LIABLE FOR ANY DAMAGE THAT MAY RESULT FROM THE USE OF BASSWV. YOU USE
BASSWV ENTIRELY AT YOUR OWN RISK.

Usage of BASSWV indicates that you agree to the above conditions.

All trademarks and other registered names contained in the BASSWV
package are the property of their respective owners.

0 comments on commit fc21a1d

Please sign in to comment.