Skip to content

Commit

Permalink
[Stash] Stash Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kengwang committed Dec 9, 2023
1 parent a47ff47 commit 9dbea3d
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 23 deletions.
44 changes: 22 additions & 22 deletions HyPlayer.App.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NAudioAudioService", "src\L
EndProject
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "HyPlayer.Package", "src\HyPlayer.Package\HyPlayer.Package.wapproj", "{07470380-3B29-4B67-A63D-F12BFE9286F1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AudioGraphAudioService", "AudioGraphAudioService\AudioGraphAudioService.csproj", "{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AudioGraphAudioService", "src\Lib\AudioGraphAudioService\AudioGraphAudioService.csproj", "{6227C0B9-6339-4626-AF56-495716226AC7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -107,33 +107,33 @@ Global
{07470380-3B29-4B67-A63D-F12BFE9286F1}.Release|x86.ActiveCfg = Release|x86
{07470380-3B29-4B67-A63D-F12BFE9286F1}.Release|x86.Build.0 = Release|x86
{07470380-3B29-4B67-A63D-F12BFE9286F1}.Release|x86.Deploy.0 = Release|x86
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|ARM.ActiveCfg = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|ARM.Build.0 = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|ARM64.Build.0 = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|x64.ActiveCfg = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|x64.Build.0 = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|x86.ActiveCfg = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Debug|x86.Build.0 = Debug|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|Any CPU.Build.0 = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|ARM.ActiveCfg = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|ARM.Build.0 = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|ARM64.ActiveCfg = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|ARM64.Build.0 = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|x64.ActiveCfg = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|x64.Build.0 = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|x86.ActiveCfg = Release|Any CPU
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0}.Release|x86.Build.0 = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|ARM.Build.0 = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|ARM64.Build.0 = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|x64.ActiveCfg = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|x64.Build.0 = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|x86.ActiveCfg = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Debug|x86.Build.0 = Debug|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|Any CPU.Build.0 = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|ARM.ActiveCfg = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|ARM.Build.0 = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|ARM64.ActiveCfg = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|ARM64.Build.0 = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|x64.ActiveCfg = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|x64.Build.0 = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|x86.ActiveCfg = Release|Any CPU
{6227C0B9-6339-4626-AF56-495716226AC7}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5B24BF75-58C0-426B-BF35-F44AAFDA234E} = {927339DD-BB50-4F1F-8D59-EC1742822C28}
{A23ACD92-578C-44F2-BB8A-A9E75AAAA8D0} = {927339DD-BB50-4F1F-8D59-EC1742822C28}
{6227C0B9-6339-4626-AF56-495716226AC7} = {927339DD-BB50-4F1F-8D59-EC1742822C28}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {945313F6-7D3E-4659-92CA-8FCD1373E542}
Expand Down
2 changes: 1 addition & 1 deletion src/HyPlayer.App/App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\AudioGraphAudioService\AudioGraphAudioService.csproj" />
<ProjectReference Include="..\Lib\AudioGraphAudioService\AudioGraphAudioService.csproj" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions src/Lib/AudioGraphAudioService/AudioGraphAudioService.csproj
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>
18 changes: 18 additions & 0 deletions src/Lib/AudioGraphAudioService/AudioGraphAudioTicket.cs
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()
{

}
}
95 changes: 95 additions & 0 deletions src/Lib/AudioGraphAudioService/AudioGraphService.cs
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();
}
}

0 comments on commit 9dbea3d

Please sign in to comment.