| 61 | } |
| 62 | |
| 63 | void GstAudioStream::loop_infinite() { |
| 64 | while (m_keep_looping) { |
| 65 | try { |
| 66 | stream_once(); |
| 67 | } catch (std::exception& ex) { |
| 68 | std::cerr << "GStreamerStream::Error: " << ex.what() << std::endl; |
| 69 | } catch (...) { |
| 70 | std::cerr << "GStreamerStream::Unknown exception occurred" << std::endl; |
| 71 | } |
| 72 | if (m_keep_looping) { |
| 73 | std::this_thread::sleep_for(std::chrono::seconds(1)); |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // Quite dirty, but hey ... |
| 79 | static std::string rpi_detect_alsasrc_device() { |
nothing calls this directly
no outgoing calls
no test coverage detected