mirror of
https://github.com/alexkay/spek.git
synced 2025-04-15 08:10:33 +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;
|
||||
switch (pipeline->window_function) {
|
||||
case WINDOW_HANN:
|
||||
window_function_name = std::string("Hann");
|
||||
break;
|
||||
case WINDOW_HAMMING:
|
||||
window_function_name = std::string("Hamming");
|
||||
break;
|
||||
case WINDOW_BLACKMAN_HARRIS:
|
||||
window_function_name = std::string("Blackman–Harris");
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
if (window_function_name.size()) {
|
||||
items.push_back("F:" + window_function_name);
|
||||
std::string window_function_name;
|
||||
switch (pipeline->window_function) {
|
||||
case WINDOW_HANN:
|
||||
window_function_name = std::string("Hann");
|
||||
break;
|
||||
case WINDOW_HAMMING:
|
||||
window_function_name = std::string("Hamming");
|
||||
break;
|
||||
case WINDOW_BLACKMAN_HARRIS:
|
||||
window_function_name = std::string("Blackman–Harris");
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
if (window_function_name.size()) {
|
||||
items.push_back("F:" + window_function_name);
|
||||
}
|
||||
}
|
||||
|
||||
std::string desc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user