X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=alsa_input.h;h=84e46b0887707dd6b273419d29cf2fada00c43d7;hb=1062c5403b57859c219558e736564a3d0bbecfd5;hp=895760fed8fef76737e341e44e188267db7c9692;hpb=01181e6e22e5cfc9d0cb17231f2c1866cc53b04a;p=nageru diff --git a/alsa_input.h b/alsa_input.h index 895760f..84e46b0 100644 --- a/alsa_input.h +++ b/alsa_input.h @@ -46,6 +46,7 @@ private: void capture_thread_func(); int64_t frames_to_pts(uint64_t n) const; void die_on_error(const char *func_name, int err); + static bool set_base_params(const char *device, snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hw_params, unsigned *sample_rate); std::string device; unsigned sample_rate, num_channels, num_periods;