Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ImGui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ add_library(ImGui STATIC
vendor/imgui/backends/imgui_impl_opengl3.cpp
vendor/imgui/backends/imgui_impl_opengl3.h
vendor/imgui/backends/imgui_impl_opengl3_loader.h
vendor/imgui/misc/cpp/imgui_stdlib.cpp
vendor/imgui/misc/cpp/imgui_stdlib.h
)

target_link_libraries(ImGui
Expand Down Expand Up @@ -39,6 +41,7 @@ target_include_directories(ImGui
PUBLIC
${CMAKE_SOURCE_DIR}/vendor/imgui
${CMAKE_SOURCE_DIR}/vendor/imgui/backends
${CMAKE_SOURCE_DIR}/vendor/imgui/misc/cpp
${SDL2_INCLUDE_DIRS}
)

Expand Down
6 changes: 3 additions & 3 deletions src/AudioCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "ProjectMWrapper.h"

#include "notifications/DisplayToastNotification.h"
#include "notifications/DisplayToast.h"

#include <Poco/NotificationCenter.h>

Expand Down Expand Up @@ -47,7 +47,7 @@ void AudioCapture::NextAudioDevice()
if (_impl)
{
_impl->NextAudioDevice();
Poco::NotificationCenter::defaultCenter().postNotification(new DisplayToastNotification(_impl->AudioDeviceName()));
Poco::NotificationCenter::defaultCenter().postNotification(new Notification::DisplayToast(_impl->AudioDeviceName()));
}
}

Expand All @@ -56,7 +56,7 @@ void AudioCapture::AudioDeviceIndex(int index)
if (_impl)
{
_impl->AudioDeviceIndex(index);
Poco::NotificationCenter::defaultCenter().postNotification(new DisplayToastNotification(_impl->AudioDeviceName()));
Poco::NotificationCenter::defaultCenter().postNotification(new Notification::DisplayToast(_impl->AudioDeviceName()));
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/AudioCaptureImpl_CoreAudioTap.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "AudioCaptureImpl_CoreAudioTap.h"

#include "notifications/AudioDataAvailableNotification.h"
#include "notifications/AudioDataAvailable.h"

#include <Poco/NotificationCenter.h>

Expand Down Expand Up @@ -213,7 +213,7 @@
unsigned int sampleCount = buffer.mDataByteSize / sizeof(float);

Poco::NotificationCenter::defaultCenter().postNotification(
new AudioDataAvailableNotification(bufferChannels, samples, sampleCount));
new Notification::AudioDataAvailable(bufferChannels, samples, sampleCount));
});

if (status != noErr || _ioProcID == nullptr)
Expand Down
4 changes: 2 additions & 2 deletions src/AudioCaptureImpl_SDL.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "AudioCaptureImpl_SDL.h"

#include "notifications/AudioDataAvailableNotification.h"
#include "notifications/AudioDataAvailable.h"

#include <Poco/NotificationCenter.h>
#include <Poco/Util/Application.h>
Expand Down Expand Up @@ -163,7 +163,7 @@ void AudioCaptureImpl::AudioInputCallback(void* userData, unsigned char* stream,
unsigned int samples = len / sizeof(float);

Poco::NotificationCenter::defaultCenter().postNotification(
new AudioDataAvailableNotification(instance->_channels,
new Notification::AudioDataAvailable(instance->_channels,
reinterpret_cast<float*>(stream),
samples));
}
4 changes: 2 additions & 2 deletions src/AudioCaptureImpl_WASAPI.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "AudioCaptureImpl_WASAPI.h"

#include "notifications/AudioDataAvailableNotification.h"
#include "notifications/AudioDataAvailable.h"

#include <Poco/UnicodeConverter.h>

Expand Down Expand Up @@ -448,7 +448,7 @@ void AudioCaptureImpl::CaptureThread()
if (framesAvailable > 0 && data != nullptr)
{
Poco::NotificationCenter::defaultCenter().postNotification(
new AudioDataAvailableNotification(_channels,
new Notification::AudioDataAvailable(_channels,
reinterpret_cast<float*>(data),
framesAvailable * _channels));
}
Expand Down
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ add_executable(projectMSDL WIN32 MACOSX_BUNDLE
SDLRenderingWindow.h
main.cpp
projectMSDL.rc
PresetPlaylist.cpp
PresetPlaylist.h
)

string(TIMESTAMP BUILD_YEAR "%Y" UTC)
Expand Down
Loading
Loading