Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7cc15ffc
Commit
7cc15ffc
authored
Jan 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alsa: added comments
Document alsa_data members.
parent
fb3e43ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
alsa_plugin.c
src/output/alsa_plugin.c
+21
-3
No files found.
src/output/alsa_plugin.c
View file @
7cc15ffc
...
@@ -41,18 +41,36 @@ typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
...
@@ -41,18 +41,36 @@ typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
snd_pcm_uframes_t
size
);
snd_pcm_uframes_t
size
);
struct
alsa_data
{
struct
alsa_data
{
/** the configured name of the ALSA device; NULL for the
default device */
char
*
device
;
char
*
device
;
/** use memory mapped I/O? */
bool
use_mmap
;
/** libasound's buffer_time setting (in microseconds) */
unsigned
int
buffer_time
;
/** libasound's period_time setting (in microseconds) */
unsigned
int
period_time
;
/** the mode flags passed to snd_pcm_open */
/** the mode flags passed to snd_pcm_open */
int
mode
;
int
mode
;
/** the libasound PCM device handle */
snd_pcm_t
*
pcm
;
snd_pcm_t
*
pcm
;
/**
* a pointer to the libasound writei() function, which is
* snd_pcm_writei() or snd_pcm_mmap_writei(), depending on the
* use_mmap configuration
*/
alsa_writei_t
*
writei
;
alsa_writei_t
*
writei
;
unsigned
int
buffer_time
;
unsigned
int
period_time
;
/** the size of one audio frame */
size_t
frame_size
;
size_t
frame_size
;
bool
use_mmap
;
/** the mixer object associated with this output */
struct
mixer
mixer
;
struct
mixer
mixer
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment