|
|
|
@ -85,7 +85,6 @@ void csong::analyze(float preferedLoudness)
|
|
|
|
m_loudness=loudness[0];
|
|
|
|
m_loudness=loudness[0];
|
|
|
|
m_widgetItem[1].setData(Qt::EditRole,QVariant(m_loudness));
|
|
|
|
m_widgetItem[1].setData(Qt::EditRole,QVariant(m_loudness));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_peakLevel=0;
|
|
|
|
m_peakLevel=0;
|
|
|
|
for (unsigned int i=0;i<fileData->samples.size();i++){
|
|
|
|
for (unsigned int i=0;i<fileData->samples.size();i++){
|
|
|
|
if (abs(fileData->samples[i])>m_peakLevel){
|
|
|
|
if (abs(fileData->samples[i])>m_peakLevel){
|
|
|
|
@ -110,19 +109,27 @@ void csong::analyze(float preferedLoudness)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (const UnsupportedExtensionEx & e)
|
|
|
|
} catch (const UnsupportedExtensionEx & e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
//std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
|
|
|
|
m_widgetItem[1].setText("Nicht unterstützte Dateiendung!");
|
|
|
|
|
|
|
|
m_widgetItem[2].setText("-");
|
|
|
|
|
|
|
|
m_widgetItem[3].setText("-");
|
|
|
|
|
|
|
|
m_widgetItem[4].setText("-");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const LoadPathNotImplEx & e)
|
|
|
|
catch (const LoadPathNotImplEx & e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
//std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const LoadBufferNotImplEx & e)
|
|
|
|
catch (const LoadBufferNotImplEx & e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
//std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const std::exception & e)
|
|
|
|
catch (const std::exception & e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
//std::cerr << "Caught: " << e.what() << std::endl;
|
|
|
|
|
|
|
|
m_widgetItem[1].setText("Nicht unterstützter Codec!");
|
|
|
|
|
|
|
|
m_widgetItem[2].setText("-");
|
|
|
|
|
|
|
|
m_widgetItem[3].setText("-");
|
|
|
|
|
|
|
|
m_widgetItem[4].setText("-");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|