Create project
This commit is contained in:
20
MicRecorder.h
Normal file
20
MicRecorder.h
Normal 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
|
||||
Reference in New Issue
Block a user