Commit 81a58b72 authored by Anne's avatar Anne

struct erstellt, für InitData streaming server

parent ab5dd839
......@@ -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
......@@ -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;
}
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