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

20
MicRecorder.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef MICRECORDER_H
#define MICRECORDER_H
#include <SFML/Audio.hpp>
class Player;
class MicRecorder : public sf::SoundRecorder {
public:
explicit MicRecorder(Player* owner);
protected:
bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount) override;
private:
Player* m_owner{nullptr}; //!< Владелец, в очередь которого передаются захваченные сэмплы.
};
#endif