/////////////////////////////////////////////////////// \see SoundRecorder::onStart ///////////////////////////////////////////////////////
| 54 | /// |
| 55 | //////////////////////////////////////////////////////////// |
| 56 | bool onStart() override |
| 57 | { |
| 58 | if (m_socket.connect(m_host, m_port) == sf::Socket::Status::Done) |
| 59 | { |
| 60 | std::cout << "Connected to server " << m_host << std::endl; |
| 61 | return true; |
| 62 | } |
| 63 | |
| 64 | return false; |
| 65 | } |
| 66 | |
| 67 | //////////////////////////////////////////////////////////// |
| 68 | /// \see SoundRecorder::onProcessSamples |