Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Kode/Kore
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7995c46f77bd1cf4ac5593489d9da08ef57e924b
Choose a base ref
...
head repository: Kode/Kore
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6c49ed5af03a28e470bab4223cc6d8e2b157993
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 26, 2024

  1. Copy the full SHA
    d6c49ed View commit details
Showing with 6 additions and 7 deletions.
  1. +6 −6 Backends/Audio2/WASAPI_WinRT/Sources/kinc/backend/WASAPI.winrt.cpp
  2. +0 −1 Sources/kinc/global.h
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
#include <AudioClient.h>
#include <Windows.h>
#include <initguid.h>
#ifdef KINC_WINRT
#ifdef KINC_WINDOWSAPP
#include <mfapi.h>
#endif
#include <mmdeviceapi.h>
#include <wrl/implements.h>

#ifdef KINC_WINRT
#ifdef KINC_WINDOWSAPP
using namespace ::Microsoft::WRL;
using namespace Windows::Media::Devices;
using namespace Windows::Storage::Streams;
@@ -55,7 +55,7 @@ namespace {
bool initDefaultDevice();
void audioThread(LPVOID);

#ifdef KINC_WINRT
#ifdef KINC_WINDOWSAPP
class AudioRenderer : public RuntimeClass<RuntimeClassFlags<ClassicCom>, FtmBase, IActivateAudioInterfaceCompletionHandler> {
public:
STDMETHOD(ActivateCompleted)(IActivateAudioInterfaceAsyncOperation *operation) {
@@ -75,7 +75,7 @@ namespace {
#endif

bool initDefaultDevice() {
#ifdef KINC_WINRT
#ifdef KINC_WINDOWSAPP
HRESULT hr = S_OK;
#else
if (renderClient != NULL) {
@@ -248,7 +248,7 @@ namespace {

} // namespace

#ifndef KINC_WINRT
#ifndef KINC_WINDOWSAPP
extern "C" void kinc_windows_co_initialize(void);
#endif

@@ -272,7 +272,7 @@ void kinc_a2_init() {
audioProcessingDoneEvent = CreateEvent(0, FALSE, FALSE, 0);
kinc_affirm(audioProcessingDoneEvent != 0);

#ifdef KINC_WINRT
#ifdef KINC_WINDOWSAPP
renderer = Make<AudioRenderer>();

IActivateAudioInterfaceAsyncOperation *asyncOp;
1 change: 0 additions & 1 deletion Sources/kinc/global.h
Original file line number Diff line number Diff line change
@@ -35,7 +35,6 @@
#if defined(KINC_WINDOWSAPP)

#define KINC_WINDOWSAPP
#define KINC_WINRT

#else