CDeviceMapParser().get_playback(card, dev, rate, channels);
+ if (card.empty() || dev.empty()) {
+ cerr << "skip due to no playback device [card: " << card << " / device: " << dev << "]" << endl;
+ return; // FIXME : update with GTEST_SKIP() once supported
+ }
+
m_spec = {
AUDIO_SAMPLE_S16LE, static_cast<uint32_t>(rate), static_cast<uint8_t>(channels)
};
CDeviceMapParser().get_capture(card, dev, rate, channels);
+ if (card.empty() || dev.empty()) {
+ cerr << "skip due to no capture device [card: " << card << " / device: " << dev << "]" << endl;
+ return; // FIXME : replace with GTEST_SKIP() once supported
+ }
+
m_spec = {
AUDIO_SAMPLE_S16LE, static_cast<uint32_t>(rate), static_cast<uint8_t>(channels)
};