mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
implement alsa source
split off alsa-util.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@76 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f2e08d53d0
commit
74bbf31c37
7 changed files with 344 additions and 67 deletions
14
src/alsa-util.h
Normal file
14
src/alsa-util.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef fooalsautilhfoo
|
||||
#define fooalsautilhfoo
|
||||
|
||||
#include <asoundlib.h>
|
||||
|
||||
#include "sample.h"
|
||||
#include "mainloop-api.h"
|
||||
|
||||
int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, struct pa_sample_spec *ss, uint32_t *periods, snd_pcm_uframes_t *buffer_size);
|
||||
|
||||
int pa_create_io_sources(snd_pcm_t *pcm_handle, struct pa_mainloop_api *m, void ***io_sources, unsigned *n_io_sources, void (*cb)(struct pa_mainloop_api*a, void *id, int fd, enum pa_mainloop_api_io_events events, void *userdata), void *userdata);
|
||||
void pa_free_io_sources(struct pa_mainloop_api* m, void **io_sources, unsigned n_io_sources);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue