Commits (3)
......@@ -35,6 +35,8 @@ struct ITA_BASE_API ITAAudiofileProperties
iLength = -1;
};
inline ~ITAAudiofileProperties() {};
ITAQuantization eQuantization;
ITADomain eDomain;
int iChannels;
......
......@@ -48,7 +48,7 @@ void CITAAudioSample::LoadWithSampleRateConversion( const std::string& sFilePath
ITASampleFrame sfRaw;
sfRaw.Load( sFilePath, dSampleRate );
Load( sfRaw, GetSampleRate() );
Load( sfRaw, dSampleRate );
}
void CITAAudioSample::Load( const CITAAudioSample& oSource )
......
......@@ -465,21 +465,20 @@ int SHKronecker( const int m )
}
std::vector<double> SHRealvaluedBasefunctions( const double elevation, const double azimuth, const int maxOrder )
std::vector<double> SHRealvaluedBasefunctions( const double elevation_rad, const double azimuth_rad, const int maxOrder )
{
std::vector<double> Y;
Y.resize( ( maxOrder + 1 )*( maxOrder + 1 ) );
Y = SHAssociatedLegendre( maxOrder, cos( elevation ) );
Y = SHAssociatedLegendre( maxOrder, cos( elevation_rad ) );
for( int n = 0; n <= maxOrder; n++ )
{
//Y[SHDegreeOrder2Linear(0,n)]*=Y[SHDegreeOrder2Linear(0,n)]*SHNormalizeConst(0,n);
Y[ SHDegreeOrder2Linear( 0, n ) ] *= SHNormalizeConst( 0, n );
for( int m = 1; m <= n; m++ )
{
double Normalizing = SHNormalizeConst( m, n );
Y[ SHDegreeOrder2Linear( m, n ) ] *= cos( m*azimuth )*Normalizing;
Y[ SHDegreeOrder2Linear( -m, n ) ] *= sin( m*azimuth )*Normalizing;
Y[ SHDegreeOrder2Linear( m, n ) ] *= cos( m*azimuth_rad )*Normalizing;
Y[ SHDegreeOrder2Linear( -m, n ) ] *= sin( m*azimuth_rad )*Normalizing;
}
}
return Y;
......