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
b8eeef48
Commit
b8eeef48
authored
3 years ago
by
Damian Karaś
Browse files
Options
Downloads
Patches
Plain Diff
ALSA_support: comments improvement
Signed-off-by:
Damian Karaś
<
s176030@student.pg.edu.pl
>
parent
5f7204a1
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
+10
-4
10 additions, 4 deletions
src/include/ALSA_support.h
with
10 additions
and
4 deletions
src/include/ALSA_support.h
+
10
−
4
View file @
b8eeef48
...
...
@@ -20,11 +20,14 @@ namespace DSP {
class
ALSA_object_t
:
public
DSP
::
SOUND_object_t
{
private:
//! handler
s
//!
PCM device
handler
snd_pcm_t
*
alsa_handle
;
//! copy of set configuration space handler
snd_pcm_hw_params_t
*
hw_params
;
//! stores pointers to audio buffers
std
::
vector
<
uint8_t
*>
pcm_buffer
;
//! stores size of audio buffers
std
::
vector
<
snd_pcm_sframes_t
>
pcm_buffer_size_in_frames
;
//! output device number used in next open operations
...
...
@@ -32,13 +35,16 @@ namespace DSP {
//! input device number used in next open operations
unsigned
int
InDevNo
;
//! keeping track of which buffer is currently being filled
//! keeping track of which
out
buffer is currently being filled
unsigned
int
NextBufferOutInd
;
//! keeping track of which inbuffer is currently being filled
unsigned
int
NextBufferInInd
;
//!
variables holding values from the external interfac
e
//!
sampling rat
e
unsigned
int
sampling_rate_alsa
;
//! number of channels
unsigned
int
no_of_channels_alsa
;
//! number of bytes in channel
unsigned
int
no_of_bytes_in_channel
;
/*! It is better to use STD containers - they are more convenient,
...
...
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