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
6b837e26
Commit
6b837e26
authored
Dec 19, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old sample server includes
parent
d9211e80
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
include/ITANetAudioServer.h
include/ITANetAudioServer.h
+3
-3
include/ITANetAudioStreamingServer.h
include/ITANetAudioStreamingServer.h
+3
-3
tests/NetAudio/ITANetAudioClientTest.cpp
tests/NetAudio/ITANetAudioClientTest.cpp
+2
-1
tests/NetAudio/ITANetAudioSampleServerTest.cpp
tests/NetAudio/ITANetAudioSampleServerTest.cpp
+6
-4
No files found.
include/ITANetAudioServer.h
View file @
6b837e26
...
...
@@ -16,8 +16,8 @@
*
*/
#ifndef INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING_S
ERVER
#define INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING_S
ERVER
#ifndef INCLUDE_WATCHER_ITA_NET_AUDIO_SERVER
#define INCLUDE_WATCHER_ITA_NET_AUDIO_SERVER
#include <ITADataSourcesDefinitions.h>
...
...
@@ -67,4 +67,4 @@ private:
int
m_iClientRingBufferFreeSamples
;
double
m_dClientSampleRate
;
};
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING_S
ERVER
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_SERVER
include/ITANetAudioStreamingServer.h
View file @
6b837e26
...
...
@@ -16,8 +16,8 @@
*
*/
#ifndef INCLUDE_WATCHER_ITA_NET_AUDIO_S
AMPLE
_SERVER
#define INCLUDE_WATCHER_ITA_NET_AUDIO_S
AMPLE
_SERVER
#ifndef INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING
_SERVER
#define INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING
_SERVER
#include <ITADataSourcesDefinitions.h>
...
...
@@ -78,4 +78,4 @@ private:
friend
class
CITANetAudioServer
;
};
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_S
AMPLE
_SERVER
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_S
TREAMING
_SERVER
tests/NetAudio/ITANetAudioClientTest.cpp
View file @
6b837e26
...
...
@@ -30,7 +30,8 @@ int main( int , char** )
cout
<<
"Will now connect to '"
<<
g_sServerName
<<
"' on port "
<<
g_iServerPort
<<
endl
;
try
{
oNetAudioStream
.
Connect
(
g_sServerName
,
g_iServerPort
);
if
(
!
oNetAudioStream
.
Connect
(
g_sServerName
,
g_iServerPort
)
)
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Could not connect to server"
);
}
catch
(
ITAException
e
)
{
...
...
tests/NetAudio/ITANetAudioSampleServerTest.cpp
View file @
6b837e26
#include <iostream>
#include <string>
#include <ITANetAudioSampleServer.h>
#include <ITANetAudioStreamingServer.h>
#include <ITANetAudioServer.h>
#include <ITAStreamFunctionGenerator.h>
using
namespace
std
;
...
...
@@ -15,11 +16,12 @@ int main( int , char** )
{
ITAStreamFunctionGenerator
oGenerator
(
1
,
g_dSampleRate
,
g_iBlockLength
,
ITAStreamFunctionGenerator
::
SINE
,
456.78
f
,
0.81
f
,
true
);
CITANetAudioS
ampleServer
oSample
Server
;
oS
ample
Server
.
SetInputStream
(
&
oGenerator
);
CITANetAudioS
treamingServer
oStreaming
Server
;
oS
treaming
Server
.
SetInputStream
(
&
oGenerator
);
CITANetAudioServer
oServer
(
&
oStreamingServer
);
cout
<<
"Starting server and waiting for connections on '"
<<
g_sServerName
<<
"' on port "
<<
g_iServerPort
<<
endl
;
oS
ampleS
erver
.
Start
(
g_sServerName
,
g_iServerPort
);
oServer
.
Start
(
g_sServerName
,
g_iServerPort
);
int
iKey
;
cin
>>
iKey
;
...
...
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