Adding streaming client

parent f54e7787
...@@ -39,7 +39,7 @@ class CITANetAudioClient : public VistaThreadLoop ...@@ -39,7 +39,7 @@ class CITANetAudioClient : public VistaThreadLoop
{ {
public: public:
//! Create an network audio client tha feeds into a network audio stream //! Create an network audio client that feeds into a network audio stream
/** /**
* \param pParent ITADataSource-compatible audio stream * \param pParent ITADataSource-compatible audio stream
*/ */
......
/*
* ----------------------------------------------------------------
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-2016
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
#ifndef INCLUDE_WATCHER_ITA_NET_AUDIO_STREAMING_CLIENT
#define INCLUDE_WATCHER_ITA_NET_AUDIO_STREAMING_CLIENT
#include <ITADataSourcesDefinitions.h>
#include <ITADataSource.h>
#include <ITASampleFrame.h>
#include <string>
#include <vector>
class CITANetAudioClient;
//! Network audio streaming client
/**
* Audio streaming for a signal source that is connected via TCP/IP.
*
* \note not thread-safe
*/
class ITA_DATA_SOURCES_API CITANetAudioStreamingClient : public VistaThreadLoop
{
public:
CITANetAudioStreamingClient( int iChannels, double dSamplingRate, int iBufferSize, int iRingBufferCapacity );
virtual ~CITANetAudioStreamingClient();
bool Connect( const std::string& sAddress, int iPort );
bool GetIsConnected() const;
bool LoopBody();
private:
CITANetAudioClient* m_pClient;
CITANetAudioStream* m_pStream;
ITASampleFrame m_sfReceivingBuffer; //!< Buffer incoming data
friend class CITANetAudioClient;
};
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_STREAMING_CLIENT
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment