initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMicrophone : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int DeviceIndex { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Bitrate { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public bool Destroy { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMicrophoneDevice : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMicrophoneDeviceResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public List<Tuple<int, string>> DeviceInfos { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMicrophoneResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Audio { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Device { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetOutput : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int DeviceIndex { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Bitrate { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public bool Destroy { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetOutputDevice : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetOutputDeviceResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public List<Tuple<int, string>> DeviceInfos { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Audio
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetOutputResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Audio { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Device { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user