Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITADataSources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITADataSources
Commits
e2344607
Commit
e2344607
authored
Dec 19, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding streaming client
parent
f54e7787
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletion
+59
-1
include/ITANetAudioClient.h
include/ITANetAudioClient.h
+1
-1
include/ITANetAudioStreamingClient.h
include/ITANetAudioStreamingClient.h
+58
-0
No files found.
include/ITANetAudioClient.h
View file @
e2344607
...
@@ -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 tha
t
feeds into a network audio stream
/**
/**
* \param pParent ITADataSource-compatible 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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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