Skip to content
Snippets Groups Projects
Commit 4b281884 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Minor changes

parent 55bcee26
Branches
Tags
No related merge requests found
...@@ -93,8 +93,8 @@ private: ...@@ -93,8 +93,8 @@ private:
int main( int , char** ) int main( int , char** )
{ {
CITANAStream* pNetAudioStream = new CITANAStream( 1, g_dSampleRate, g_iBufferSize ); CITANAStream oNetAudioStream( 1, g_dSampleRate, g_iBufferSize );
ITAStreamMultiplier1N oMultiplier( pNetAudioStream, 2 ); ITAStreamMultiplier1N oMultiplier( &oNetAudioStream, 2 );
ITAPortaudioInterface ITAPA( g_dSampleRate, g_iBufferSize ); ITAPortaudioInterface ITAPA( g_dSampleRate, g_iBufferSize );
ITAPA.Initialize(); ITAPA.Initialize();
...@@ -103,16 +103,14 @@ int main(int , char** ) ...@@ -103,16 +103,14 @@ int main(int , char** )
ITAPA.Start(); ITAPA.Start();
// Playback // Playback
float seconds = 10.0f; float fSeconds = 10.0f;
cout << "Playback started, waiting " << seconds << " seconds" << endl; cout << "Playback started, waiting " << fSeconds << " seconds" << endl;
ITAPA.Sleep( seconds ); // blocking ITAPA.Sleep( fSeconds ); // blocking
cout << "Done." << endl; cout << "Done." << endl;
ITAPA.Stop(); ITAPA.Stop();
ITAPA.Close(); ITAPA.Close();
ITAPA.Finalize(); ITAPA.Finalize();
delete pNetAudioStream;
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment