Commit fdc504a7 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Fixing problems with NetAudio / VANetStream. Now NetStream is working.

parent 20e770c7
......@@ -11,10 +11,9 @@ CVANetstreamSignalSource::CVANetstreamSignalSource( double dDestinationSamplerat
: m_pAssociatedCore( NULL )
{
m_pSourceStream = new CITANetAudioStream( 1, dDestinationSamplerate, iBlocklength, 12 * iBlocklength );
m_pSourceStream->SetAllowedLatencySamples( m_pSourceStream->GetMaximumLatencySamples() );
if( !m_pSourceStream->Connect( sBindAddress, iRecvPort ) )
VA_EXCEPT2( INVALID_PARAMETER, "Could not connect to network audio streaming server" );
VA_EXCEPT2( INVALID_PARAMETER, "Could not connect to network audio streaming server or connection refused (parameter mismatch?)" );
}
CVANetstreamSignalSource::~CVANetstreamSignalSource()
......
......@@ -150,7 +150,15 @@ CVAStruct GetCoreConfig()
void CreateAudioSignals()
{
cout << "Connecting to network stream signal source on localhost:12480" << endl;
string sNetStreamID = core->CreateNetworkStreamSignalSource( "localhost", 12480, "CoreTestNetStream" );
string sNetStreamID;
try
{
sNetStreamID = core->CreateNetworkStreamSignalSource( "localhost", 12480, "CoreTestNetStream" );
}
catch( CVAException& e )
{
cerr << "Caught exception during stream signal source connection:" << e << endl;
}
string sFileID = core->CreateAudiofileSignalSource( "Audiofiles/Bauer.wav" );
core->SetAudiofileSignalSourcePlaybackAction( sFileID, IVACore::VA_PLAYBACK_ACTION_PLAY );
......
Supports Markdown
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