From 3f8b77cba13150ce17395aba84505bc23f47d9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kara=C5=9B?= <s176030@student.pg.edu.pl> Date: Mon, 11 Oct 2021 20:18:43 +0200 Subject: [PATCH] wip-recording v1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Damian KaraĹ <s176030@student.pg.edu.pl> --- src/include/ALSA_support.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include/ALSA_support.h b/src/include/ALSA_support.h index 1700b8d..60199be 100644 --- a/src/include/ALSA_support.h +++ b/src/include/ALSA_support.h @@ -34,6 +34,7 @@ namespace DSP { //! keeping track of which buffer is currently being filled unsigned int NextBufferOutInd; + unsigned int NextBufferInInd; //! variables holding values ââfrom the external interface unsigned int sampling_rate_alsa; @@ -76,6 +77,14 @@ namespace DSP { //! buffer capacity int size_b; + /***************************************************/ + /****************AUDIO INPUT TEST*******************/ + DSP::e::SampleType InSampleType; + static void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, uint32_t dwInstance, uint32_t dwParam1, uint32_t dwParam2); + std::vector<std::vector<int8_t>> input_buffers; + /**********************END**************************/ + /***************************************************/ + /*! Open default PCM device and return 1 on success or negative error code stream_type = SND_PCM_STREAM_PLAYBACK or SND_PCM_STREAM_CAPTURE the rest of the parameters are set in the class -- GitLab