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

Fixing typo in include (bufferdatasourcetest) and improving cmake config

parent 1b3872ca
......@@ -66,18 +66,18 @@ set( ITADataSourcesSources
# Filter windows-only components
if( WIN32 )
list( APPEND ${ITADataSourcesHeader} "include/ITAStreamPump.cpp" "include/ITADataSourceUtils.cpp" )
list( APPEND ${ITADataSourcesSources} "src/ITAStreamPump.cpp" "src/ITADataSourceUtils.cpp" )
list( APPEND ITADataSourcesHeader "include/ITAStreamPump.h" "include/ITADataSourceUtils.h" )
list( APPEND ITADataSourcesSources "src/ITAStreamPump.cpp" "src/ITADataSourceUtils.cpp" )
endif( WIN32 )
if( VASIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_ASIO )
set( ITADataSourcesHeader "${ITADataSourcesHeader}" "include/ITAAsioInterface.h" )
set( ITADataSourcesSources "${ITADataSourcesSources}" "src/ITAAsioInterface.cpp" )
list( APPEND ITADataSourcesHeader "include/ITAAsioInterface.h" )
list( APPEND ITADataSourcesSources "src/ITAAsioInterface.cpp" )
add_definitions( -DIEEE754_64FLOAT=1 )
endif( VASIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_ASIO )
if( VPORTAUDIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_PORTAUDIO )
set( ITADataSourcesHeader "${ITADataSourcesHeader}" "include/ITAPortaudioInterface.h" )
set( ITADataSourcesSources "${ITADataSourcesSources}" "src/ITAPortaudioInterface.cpp" )
list( APPEND ITADataSourcesHeader "include/ITAPortaudioInterface.h" )
list( APPEND ITADataSourcesSources "src/ITAPortaudioInterface.cpp" )
endif( VPORTAUDIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_PORTAUDIO )
......
......@@ -183,9 +183,9 @@ public:
/**
* Set up internal variables of ITAPortaudio. No exception will be
* thrown here.
* \note Next do initialization
* @note Next do initialization
*
* \see #Initialize #Initialize(const int iDriver)
* @see Initialize()
*/
ITAPortaudioInterface( double dSampleRate, int iBufferSize );
......@@ -203,13 +203,13 @@ public:
ITA_PA_ERRORCODE Initialize();
//! Initialize Portaudio using specified host/driver by id
ITA_PA_ERRORCODE Initialize( int iDriverID);
ITA_PA_ERRORCODE Initialize( int iDriverID );
//! Initialize Portaudio using specified driver by name
ITA_PA_ERRORCODE Initialize( const std::string& sDriverName );
//! Use Portaudio with specific input device
ITA_PA_ERRORCODE SetOutputDevice( int iOutputDevice);
ITA_PA_ERRORCODE SetOutputDevice( int iOutputDevice );
//! Returns true if playback is enabled, false otherwise
bool IsPlaybackEnabled() const;
......@@ -277,13 +277,13 @@ public:
int GetOutputDevice() const;
//! Returns the number of input and output channels
void GetNumChannels( const int iDeviceID, int& iNumInputChannels, int& iNumOutputChannels ) const;
void GetNumChannels( int iDeviceID, int& iNumInputChannels, int& iNumOutputChannels ) const;
//! Returns the number of input channels
/**
* \return Number of input channels (>=0) or #ITA_PA_ERRORCODE (<0)
*/
int GetNumInputChannels( const int iDeviceID ) const;
int GetNumInputChannels( int iDeviceID ) const;
//! Returns the number of output channels
/**
......
#include <ITAException.h>
#include <ITABufferDataiSource.h>
#include <ITABufferDataSource.h>
#include <ITADataSourceUtils.h>
#include <stdio.h>
#include <vector>
......@@ -32,7 +32,7 @@ int main(int argc, char* argv[]) {
printf("ROI-Length: %d\n", pSource->GetROILength());
// Kompletten Inhalt in eine Datei schreiben
WriteFromDatasourceToFile(pSource, "Complete.wav", pSource->GetCapacity());
WriteFromDatasourceToFile( pSource, "Complete.wav", pSource->GetCapacity() );
// Rckspulen testen
pSource->Rewind();
......
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