ITAAudiofileCommon.h 1.22 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
/*
2 3 4 5
 * ----------------------------------------------------------------
 *
 *		ITA core libs
 *		(c) Copyright Institute of Technical Acoustics (ITA)
6
 *		RWTH Aachen University, Germany, 2015-2019
7 8 9 10 11 12 13 14 15 16 17
 *
 * ----------------------------------------------------------------
 *				    ____  __________  _______
 *				   //  / //__   ___/ //  _   |
 *				  //  /    //  /    //  /_|  |
 *				 //  /    //  /    //  ___   |
 *				//__/    //__/    //__/   |__|
 *
 * ----------------------------------------------------------------
 *
 */
Jonas Stienen's avatar
Jonas Stienen committed
18 19 20 21 22

#ifndef INCLUDE_WATCHER_ITA_AUDIOFILE_COMMON
#define INCLUDE_WATCHER_ITA_AUDIOFILE_COMMON

#include <ITABaseDefinitions.h>
23
#include <ITATypes.h>
Jonas Stienen's avatar
Jonas Stienen committed
24 25 26

#include <string>

27
struct ITA_BASE_API ITAAudiofileProperties
Jonas Stienen's avatar
Jonas Stienen committed
28
{
29 30 31 32 33 34 35 36 37
	inline ITAAudiofileProperties()
	{
		eQuantization = ITAQuantization::ITA_FLOAT;
		eDomain = ITADomain::ITA_TIME_DOMAIN;
		iChannels = -1;
		dSampleRate = 44100.0f;
		iLength = -1;
	};

38 39
	inline ~ITAAudiofileProperties() {};

Jonas Stienen's avatar
Jonas Stienen committed
40 41
	ITAQuantization eQuantization;
	ITADomain eDomain;
42 43 44
	int iChannels;
	double dSampleRate;
	int iLength;
Jonas Stienen's avatar
Jonas Stienen committed
45
	std::string sComment;
46
} ;
Jonas Stienen's avatar
Jonas Stienen committed
47

48 49
//! Print audio file properties to console
ITA_BASE_API void print( const ITAAudiofileProperties& props );
Jonas Stienen's avatar
Jonas Stienen committed
50 51

#endif // INCLUDE_WATCHER_ITA_AUDIOFILE_COMMON