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
81a58b72
Commit
81a58b72
authored
Dec 19, 2016
by
Anne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
struct erstellt, für InitData streaming server
parent
ab5dd839
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
include/ITANetAudioStreamingServer.h
include/ITANetAudioStreamingServer.h
+7
-5
src/ITANetAudioStreamingServer.cpp
src/ITANetAudioStreamingServer.cpp
+12
-1
No files found.
include/ITANetAudioStreamingServer.h
View file @
81a58b72
...
...
@@ -81,11 +81,13 @@ private:
friend
class
CITANetAudioServer
;
// TODO: in nem Struct speichern
int
m_iClientChannels
;
int
m_iClientRingBufferSize
;
int
m_iClientBufferSize
;
double
m_dClientSampleRate
;
// TODO: in einem Struct speichern
struct
InitData
{
int
iClientChannels
;
int
iClientRingBufferSize
;
int
iClientBufferSize
;
double
dClientSampleRate
;
}
m_initData
;
};
#endif // INCLUDE_WATCHER_ITA_NET_AUDIO_STREAMING_SERVER
src/ITANetAudioStreamingServer.cpp
View file @
81a58b72
...
...
@@ -33,6 +33,17 @@ bool CITANetAudioStreamingServer::Start(const std::string& sAddress, int iPort)
if
(
m_pNetAudioServer
->
Start
(
sAddress
,
iPort
))
{
m_pSocket
=
m_pNetAudioServer
->
GetSocket
();
// TODO: Init neu mit Netmessage
long
nIncomingBytes
=
m_pSocket
->
WaitForIncomingData
(
0
);
int
iBytesReceived
=
m_pSocket
->
ReceiveRaw
(
&
m_initData
,
sizeof
(
InitData
));
m_iClientRingBufferFreeSamples
=
m_iClientRingBufferFreeSamples
;
int
iMessageID
=
1
;
m_pSocket
->
SendRaw
(
&
iMessageID
,
sizeof
(
int
));
Run
();
return
true
;
return
true
;
}
return
false
;
...
...
@@ -90,5 +101,5 @@ ITADatasource* CITANetAudioStreamingServer::GetInputStream() const
int
CITANetAudioStreamingServer
::
Transmit
(
const
ITASampleFrame
&
sfNewSamples
,
int
iNumSamples
)
{
return
1
;
return
0
;
}
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