Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITADataSources
Commits
e2344607
Commit
e2344607
authored
Dec 19, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding streaming client
parent
f54e7787
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ITANetAudioClient.h
View file @
e2344607
...
...
@@ -39,7 +39,7 @@ class CITANetAudioClient : public VistaThreadLoop
{
public:
//! Create an network audio client tha feeds into a network audio stream
//! Create an network audio client tha
t
feeds into a network audio stream
/**
* \param pParent ITADataSource-compatible audio stream
*/
...
...
include/ITANetAudioStreamingClient.h
0 → 100644
View file @
e2344607
/*
* ----------------------------------------------------------------
*
* 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment