MCPcopy Create free account
hub / github.com/cactus-compute/cactus / AudioCapture

Method AudioCapture

tests/test_utils.cpp:375–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373#ifdef HAVE_SDL2
374
375AudioCapture::AudioCapture(int len_ms)
376 : m_len_ms(len_ms)
377 , m_running(false)
378 , m_dev_id_in(0)
379 , m_sdl_initialized(false)
380 , m_audio_pos(0)
381 , m_audio_len(0)
382 , m_total_samples_received(0) {}
383
384AudioCapture::~AudioCapture() {
385 if (m_dev_id_in) SDL_CloseAudioDevice(m_dev_id_in);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected