-
Notifications
You must be signed in to change notification settings - Fork 2
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
5 changed files
with
152 additions
and
23 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
16 changes: 16 additions & 0 deletions
16
src/Lib/AudioGraphAudioService/AudioGraphAudioService.csproj
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,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework> | ||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> | ||
<RootNamespace>AudioGraphAudioService</RootNamespace> | ||
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers> | ||
<UseWinUI>true</UseWinUI> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Depository.Abstraction" Version="1.3.0" /> | ||
<PackageReference Include="HyPlayer.PlayCore.Abstraction" Version="0.1.3" /> | ||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230502000" /> | ||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" /> | ||
</ItemGroup> | ||
</Project> |
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,18 @@ | ||
using Windows.Media.Audio; | ||
using HyPlayer.PlayCore.Abstraction.Models.AudioServiceComponents; | ||
|
||
namespace AudioGraphAudioService; | ||
|
||
public class AudioGraphAudioTicket : AudioTicketBase, | ||
{ | ||
public MediaSourceAudioInputNode Input { get; set; } | ||
public double Volume { get; set; } | ||
public long Duration { get; set; } | ||
public | ||
public double PlaybackSpeed { get; set; } | ||
|
||
public void Abc() | ||
{ | ||
|
||
} | ||
} |
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,95 @@ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Depository.Abstraction.Interfaces; | ||
using HyPlayer.PlayCore.Abstraction; | ||
using HyPlayer.PlayCore.Abstraction.Interfaces.AudioServices; | ||
using HyPlayer.PlayCore.Abstraction.Models.AudioServiceComponents; | ||
using HyPlayer.PlayCore.Abstraction.Models.Resources; | ||
|
||
namespace AudioGraphAudioService; | ||
|
||
public class AudioGraphService : | ||
AudioServiceBase, | ||
IAudioTicketListProvidable, | ||
IAudioTicketSeekableService, | ||
IAudioTicketVolumeChangeable, | ||
IOutgoingVolumeChangeable, | ||
IOutputDeviceChangeableService, | ||
IPauseAudioTicketService, | ||
IPlayAudioTicketService, | ||
IPlaybackSpeedChangeable, | ||
IStopAudioTicketService | ||
{ | ||
|
||
private INotificationHub _notificationHub; | ||
|
||
public AudioGraphService(INotificationHub notificationHub) | ||
{ | ||
_notificationHub = notificationHub; | ||
} | ||
|
||
public override string Id => "agp"; | ||
public override string Name => "AudioGraph"; | ||
|
||
public override async Task<AudioTicketBase> GetAudioTicketAsync(MusicResourceBase musicResource, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public override async Task DisposeAudioTicketAsync(AudioTicketBase audioTicket, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public override async Task<List<AudioTicketBase>> GetCreatedAudioTicketsAsync(CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
|
||
public async Task<List<AudioTicketBase>> GetAudioTicketListAsync(CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task SeekAudioTicket(AudioTicketBase audioTicket, long position, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task ChangeVolume(AudioTicketBase ticket, double volume, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task ChangeOutgoingVolume(double volume, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task<List<OutputDeviceBase>> GetOutputDevices(CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task SetOutputDevices(OutputDeviceBase device, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task PauseAudioTicket(AudioTicketBase ticket, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task PlayAudioTicket(AudioTicketBase ticket, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task StopTicket(AudioTicketBase ticket, CancellationToken ctk = new CancellationToken()) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} |