Create project

This commit is contained in:
2026-06-26 22:53:15 +03:00
commit 85463a30fa
11 changed files with 1055 additions and 0 deletions

15
MicRecorder.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "MicRecorder.h"
#include "Player.h"
MicRecorder::MicRecorder(Player* owner)
: m_owner(owner) {
setChannelCount(1);
setProcessingInterval(sf::milliseconds(20));
}
bool MicRecorder::onProcessSamples(const sf::Int16* samples, std::size_t sampleCount) {
m_owner->enqueueSamples(samples, sampleCount);
return true;
}