Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Digital Signal Processing Engine Library
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
DSPE
Digital Signal Processing Engine Library
Commits
3f8b77cb
Commit
3f8b77cb
authored
3 years ago
by
Damian Karaś
Browse files
Options
Downloads
Patches
Plain Diff
wip-recording v1
Signed-off-by:
Damian Karaś
<
s176030@student.pg.edu.pl
>
parent
4b071ea9
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/ALSA_support.h
+9
-0
9 additions, 0 deletions
src/include/ALSA_support.h
with
9 additions
and
0 deletions
src/include/ALSA_support.h
+
9
−
0
View file @
3f8b77cb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment