diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2020-02-24 13:19:08 +0100 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2020-02-24 13:34:47 +0100 |
| commit | b1015d797dd82d593ea18bdde8566b708a441ff9 (patch) | |
| tree | 8df8d5dccdbe20be907e39194bc0da511f319fa5 /tests/audioprobe.cpp | |
| parent | a464dd378a968ea8def10287b5f1aef365728b04 (diff) | |
audioprobe: print preferred sample rate
Diffstat (limited to 'tests/audioprobe.cpp')
| -rw-r--r-- | tests/audioprobe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/audioprobe.cpp b/tests/audioprobe.cpp index f2f47d9..00f2f0d 100644 --- a/tests/audioprobe.cpp +++ b/tests/audioprobe.cpp @@ -83,6 +83,10 @@ int main() std::cout << info.sampleRates[j] << " "; } std::cout << std::endl; + if ( info.preferredSampleRate == 0 ) + std::cout << "No preferred sample rate found!" << std::endl; + else + std::cout << "Preferred sample rate = " << info.preferredSampleRate << std::endl; } } std::cout << std::endl; |
