Skip to content
Snippets Groups Projects
Commit 3f8b77cb authored by Damian Karaś's avatar Damian Karaś
Browse files

wip-recording v1


Signed-off-by: default avatarDamian Karaś <s176030@student.pg.edu.pl>
parent 4b071ea9
Branches
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment