Skip to content
Snippets Groups Projects
Select Git revision
  • v1.3.1
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2353-dropShapeFix
  • Issue/2583-treeBug
  • Hotfix/2562-organizations
  • Issue/2464-invalidateMeta
  • Issue/2484-filterExtracted
  • Issue/2309-docs
  • Issue/2462-removeTraces
  • Hotfix/2459-EncodingPath
  • Hotfix/2452-linkedDeletion
  • Issue/2328-noFailOnLog
  • Issue/1792-newMetadataStructure
  • v2.5.2-Hotfix2365
  • Hotfix/2365-targetClassWorks
  • Issue/2269-niceKpiParser
  • Issue/2295-singleOrganizationFix
  • Issue/1953-owlImports
  • Hotfix/2087-efNet6
  • v2.9.0
  • v2.8.2
  • v2.8.1
  • v2.8.0
  • v2.7.2
  • v2.7.1
  • v2.7.0
  • v2.6.2
  • v2.6.1
  • v2.6.0
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v2.0.0
41 results

Metadata.sln

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    VACSDummyWrapper.h 1.61 KiB
    /*
     *  --------------------------------------------------------------------------------------------
     *
     *    VVV        VVV A
     *     VVV      VVV AAA        Virtual Acoustics (VA)
     *      VVV    VVV   AAA       Real-time auralisation for virtual reality
     *       VVV  VVV     AAA
     *        VVVVVV       AAA     (c) Copyright Institute of Technical Acoustics (ITA)
     *         VVVV         AAA        RWTH Aachen University (http://www.akustik.rwth-aachen.de)
     *
     *  --------------------------------------------------------------------------------------------
     */
    
    #ifndef INCLUDE_WATCHER_VA_CS_DUMMY_WRAPPER
    #define INCLUDE_WATCHER_VA_CS_DUMMY_WRAPPER
    
    #include <VACSDefinitions.h>
    
    /**
     * A dummy wrapper library to investigate how marshaling between unmanaged C++ and C# works.
     *
     */
    
    struct MyStruct;
    class MyCppClass;
    
    struct MySample
    {
    	double dTime;
    	double dAmplitude;
    };
    
    
    extern "C"
    {
    	//! Rears a string and writes it back as call by reference
    	VACS_API double NativeSampleBuffer( MySample* pMySampleBuffer, int iSize );
    	VACS_API int NativeSetSampleBuffer( double* vdSampleBuffer, int iNumSamples );
    	VACS_API int NativeGetSampleBuffer( double* vdSampleBuffer, int iNumRequestedSamples );
    	VACS_API bool NativeMyFunction( const char* pcInput, char* pcOutput );
    	VACS_API bool NativeMyStruct( const MyStruct* pIn, MyStruct* pOut );
    	VACS_API bool NativeMyClassIO( const MyCppClass* pIn, MyCppClass* pOut );
    	VACS_API int NativeGetBuffer( int iDataSize, const unsigned char* pBuf );
    	VACS_API int NativeSetBuffer( int iMaxDataSize, unsigned char* pBuf );
    	VACS_API void NativeCauseException( );
    }
    
    #endif // INCLUDE_WATCHER_VA_CS_DUMMY_WRAPPER