Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "SFML\Audio.hpp"
- #include <iostream>
- class MyRecorder : public sf::SoundRecorder{
- public:
- virtual bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount){
- std::cout << "called with " << sampleCount << " samples" << std::endl;
- return false;
- }
- };
- int main(){
- MyRecorder r;
- r.start();
- sf::sleep(sf::milliseconds(5000));
- r.stop();
- sf::sleep(sf::milliseconds(5000));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement