mirror of
https://github.com/alexkay/spek.git
synced 2025-04-18 17:37:39 +03:00
Don't show window size and function on stream error
This commit is contained in:
parent
3010e0f635
commit
ac9c92df2d
@ -205,24 +205,26 @@ std::string spek_pipeline_desc(const struct spek_pipeline *pipeline)
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
items.push_back(std::string(wxString::Format(wxT("W:%i"), pipeline->nfft).utf8_str()));
|
if (pipeline->file->get_error() == AudioError::OK) {
|
||||||
|
items.push_back(std::string(wxString::Format(wxT("W:%i"), pipeline->nfft).utf8_str()));
|
||||||
|
|
||||||
std::string window_function_name;
|
std::string window_function_name;
|
||||||
switch (pipeline->window_function) {
|
switch (pipeline->window_function) {
|
||||||
case WINDOW_HANN:
|
case WINDOW_HANN:
|
||||||
window_function_name = std::string("Hann");
|
window_function_name = std::string("Hann");
|
||||||
break;
|
break;
|
||||||
case WINDOW_HAMMING:
|
case WINDOW_HAMMING:
|
||||||
window_function_name = std::string("Hamming");
|
window_function_name = std::string("Hamming");
|
||||||
break;
|
break;
|
||||||
case WINDOW_BLACKMAN_HARRIS:
|
case WINDOW_BLACKMAN_HARRIS:
|
||||||
window_function_name = std::string("Blackman–Harris");
|
window_function_name = std::string("Blackman–Harris");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
if (window_function_name.size()) {
|
if (window_function_name.size()) {
|
||||||
items.push_back("F:" + window_function_name);
|
items.push_back("F:" + window_function_name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string desc;
|
std::string desc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user