mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
More work. Audio driver works enough to play music now.
This commit is contained in:
25
GpD3D/GpPLGlueAudioChannel.h
Normal file
25
GpD3D/GpPLGlueAudioChannel.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "HostAudioChannel.h"
|
||||
#include "IGpAudioChannelCallbacks.h"
|
||||
|
||||
struct IGpAudioChannel;
|
||||
|
||||
class GpPLGlueAudioChannel final : public PortabilityLayer::HostAudioChannel, public IGpAudioChannelCallbacks
|
||||
{
|
||||
public:
|
||||
void SetClientAudioChannelContext(PortabilityLayer::ClientAudioChannelContext *context) override;
|
||||
void PostBuffer(const void *buffer, size_t bufferSize) override;
|
||||
void Destroy() override;
|
||||
|
||||
void NotifyBufferFinished() override;
|
||||
|
||||
static GpPLGlueAudioChannel *Create(IGpAudioChannel *audioChannel);
|
||||
|
||||
private:
|
||||
explicit GpPLGlueAudioChannel(IGpAudioChannel *audioChannel);
|
||||
~GpPLGlueAudioChannel();
|
||||
|
||||
PortabilityLayer::ClientAudioChannelContext *m_clientContext;
|
||||
IGpAudioChannel *m_audioChannel;
|
||||
};
|
||||
Reference in New Issue
Block a user