-
Notifications
You must be signed in to change notification settings - Fork 8
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
45 changed files
with
567 additions
and
151 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 @@ | ||
:; set -eo pipefail | ||
:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) | ||
:; ${SCRIPT_DIR}/build.sh "$@" | ||
:; exit $? | ||
|
||
@ECHO OFF | ||
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %* Compile --MsBuildPath '' |
50 changes: 50 additions & 0 deletions
50
src/Plugins/dotnet_demo/Extension/ExtensionPlaybackQueue.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using AIMP.SDK; | ||
using AIMP.SDK.Player.Extensions; | ||
using AIMP.SDK.Player.Objects; | ||
using AIMP.SDK.Playlist.Objects; | ||
|
||
namespace DemoPlugin.Extension | ||
{ | ||
public class ExtensionPlaybackQueue : IAimpExtensionPlaybackQueue | ||
{ | ||
private readonly IAimpPlayer _player; | ||
|
||
public ExtensionPlaybackQueue(IAimpPlayer player) | ||
{ | ||
_player = player; | ||
} | ||
|
||
public AimpActionResult GetNext(object current, PlaybackQueueFlags flags, IAimpPlaybackQueueItem queueItem) | ||
{ | ||
if (queueItem.PlaylistItem != null) | ||
{ | ||
System.Diagnostics.Debugger.Break(); | ||
} | ||
|
||
return new AimpActionResult(ActionResultType.OK); | ||
} | ||
|
||
public AimpActionResult GetPrev(object current, PlaybackQueueFlags flags, IAimpPlaybackQueueItem queueItem) | ||
{ | ||
if (queueItem.PlaylistItem != null) | ||
{ | ||
System.Diagnostics.Debugger.Break(); | ||
} | ||
|
||
return new AimpActionResult(ActionResultType.OK); | ||
} | ||
|
||
public void OnSelect(IAimpPlaylistItem item, IAimpPlaybackQueueItem queueItem) | ||
{ | ||
if (queueItem.PlaylistItem != null) | ||
{ | ||
System.Diagnostics.Debugger.Break(); | ||
} | ||
} | ||
|
||
public AimpActionResult<PlaybackQueueInfo> GetInfo(IAimpPlaylistItem item) | ||
{ | ||
return new AimpActionResult<PlaybackQueueInfo>(ActionResultType.OK); | ||
} | ||
} | ||
} |
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
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
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
22 changes: 22 additions & 0 deletions
22
src/SDK/AIMP.SDK/SDK/Player/Extensions/PlaybackQueueFlags.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace AIMP.SDK.Player.Extensions; | ||
|
||
/// <summary> | ||
/// Enum PlaybackQueueFlags | ||
/// </summary> | ||
public enum PlaybackQueueFlags | ||
{ | ||
/// <summary> | ||
/// The start from beginning | ||
/// </summary> | ||
StartFromBeginning = 1, | ||
|
||
/// <summary> | ||
/// The start from cursor | ||
/// </summary> | ||
StartFromCursor = 2, | ||
|
||
/// <summary> | ||
/// The start from item | ||
/// </summary> | ||
StartFromItem = 3 | ||
} |
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,8 @@ | ||
namespace AIMP.SDK.Player.Extensions; | ||
|
||
public class PlaybackQueueInfo | ||
{ | ||
public int Position { get; } | ||
|
||
public int Size { get; } | ||
} |
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
Oops, something went wrong.