Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • develop protected
  • feature/ra-renderer-directivity
  • big_2017_api_change
  • VA_v2024a
  • VA_v2023b
  • VA_v2023a
  • VA_v2022a
  • before_cmake_rework
  • v2021.a
  • v2020.a
  • v2019.a
  • v2018.b
  • before_big_2017_api_change
  • v2017.c
  • v2017.a
  • v2016.a
17 results

StructTest.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ITASampleBuffer.h 12.26 KiB
    /*
     * ----------------------------------------------------------------
     *
     *		ITA core libs
     *		(c) Copyright Institute of Technical Acoustics (ITA)
     *		RWTH Aachen University, Germany, 2015-2024
     *
     * ----------------------------------------------------------------
     *				    ____  __________  _______
     *				   //  / //__   ___/ //  _   |
     *				  //  /    //  /    //  /_|  |
     *				 //  /    //  /    //  ___   |
     *				//__/    //__/    //__/   |__|
     *
     * ----------------------------------------------------------------
     *
     */
    
    #ifndef INCLUDE_WATCHER_ITA_SAMPLE_BUFFER
    #define INCLUDE_WATCHER_ITA_SAMPLE_BUFFER
    
    // ITABase
    #include <ITABaseDefinitions.h>
    
    // STL
    #include <string>
    
    // Forwards
    class ITASampleFrame;
    
    //! Buffer for a field of audio samples of type 32-bit floating point
    /**
     *
     */
    class ITA_BASE_API ITASampleBuffer
    {
    public:
    	ITASampleBuffer( );
    
    	//! Create sample buffer of certain size
    	/**
    	 * \param iLength	Length (size) of buffer in samples
    	 */
    	explicit ITASampleBuffer( int iLength, bool bZeroInit = true );
    
    	//! Copy constructor as pointer
    	/**
    	 * \param pSource Pointer to source buffer
    	 */
    	ITASampleBuffer( const ITASampleBuffer* pSource );
    
    	//! Copy constructor as reference
    	/**
    	 * \param pbSource Reference to source buffer
    	 */
    	ITASampleBuffer( const ITASampleBuffer& sbSource );
    
    	virtual ~ITASampleBuffer( );
    
    	bool IsEmpty( ) const;
    
    	//! Deprecated
    	inline int length( ) { return GetLength( ); };
    
    	//! Length (size) of buffer (number of samples)
    	int GetLength( ) const;
    
    	//! Deprecated
    	inline const float* data( ) const { return GetData( ); };