summaryrefslogtreecommitdiff
path: root/examples/voip/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/voip/Client.cpp')
-rw-r--r--examples/voip/Client.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/examples/voip/Client.cpp b/examples/voip/Client.cpp
index 595d624..d66e0e2 100644
--- a/examples/voip/Client.cpp
+++ b/examples/voip/Client.cpp
@@ -32,10 +32,22 @@ public:
{
}
+ ////////////////////////////////////////////////////////////
+ /// Destructor
+ ///
+ /// \see SoundRecorder::~SoundRecorder()
+ ///
+ ////////////////////////////////////////////////////////////
+ ~NetworkRecorder()
+ {
+ // Make sure to stop the recording thread
+ stop();
+ }
+
private:
////////////////////////////////////////////////////////////
- /// /see SoundRecorder::OnStart
+ /// \see SoundRecorder::onStart
///
////////////////////////////////////////////////////////////
virtual bool onStart()
@@ -52,7 +64,7 @@ private:
}
////////////////////////////////////////////////////////////
- /// /see SoundRecorder::ProcessSamples
+ /// \see SoundRecorder::onProcessSamples
///
////////////////////////////////////////////////////////////
virtual bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount)
@@ -67,7 +79,7 @@ private:
}
////////////////////////////////////////////////////////////
- /// /see SoundRecorder::OnStop
+ /// \see SoundRecorder::onStop
///
////////////////////////////////////////////////////////////
virtual void onStop()
@@ -98,7 +110,7 @@ private:
void doClient(unsigned short port)
{
// Check that the device can capture audio
- if (sf::SoundRecorder::isAvailable() == false)
+ if (!sf::SoundRecorder::isAvailable())
{
std::cout << "Sorry, audio capture is not supported by your system" << std::endl;
return;