Changeset b497018 in mainline for uspace/lib/drv/include/audio_pcm_iface.h
- Timestamp:
- 2012-07-15T15:13:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2cc5c835
- Parents:
- 44d1311
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/audio_pcm_iface.h
r44d1311 rb497018 52 52 53 53 int audio_pcm_get_info_str(async_exch_t *, const char **); 54 int audio_pcm_get_buffer(async_exch_t *, void **, size_t *, unsigned *,54 int audio_pcm_get_buffer(async_exch_t *, void **, size_t *, 55 55 async_client_conn_t, void *); 56 int audio_pcm_release_buffer(async_exch_t * , unsigned);56 int audio_pcm_release_buffer(async_exch_t *); 57 57 58 int audio_pcm_start_playback(async_exch_t *, unsigned, unsigned,58 int audio_pcm_start_playback(async_exch_t *, unsigned, 59 59 unsigned, unsigned, pcm_sample_format_t); 60 int audio_pcm_stop_playback(async_exch_t * , unsigned);60 int audio_pcm_stop_playback(async_exch_t *); 61 61 62 int audio_pcm_start_record(async_exch_t *, unsigned, unsigned,62 int audio_pcm_start_record(async_exch_t *, unsigned, 63 63 unsigned, unsigned, pcm_sample_format_t); 64 int audio_pcm_stop_record(async_exch_t * , unsigned);64 int audio_pcm_stop_record(async_exch_t *); 65 65 66 66 /** Audio pcm communication interface. */ 67 67 typedef struct { 68 68 int (*get_info_str)(ddf_fun_t *, const char **); 69 int (*get_buffer)(ddf_fun_t *, void **, size_t * , unsigned *);70 int (*release_buffer)(ddf_fun_t * , unsigned);71 int (*set_event_session)(ddf_fun_t *, unsigned,async_sess_t *);72 int (*start_playback)(ddf_fun_t *, unsigned, unsigned,69 int (*get_buffer)(ddf_fun_t *, void **, size_t *); 70 int (*release_buffer)(ddf_fun_t *); 71 int (*set_event_session)(ddf_fun_t *, async_sess_t *); 72 int (*start_playback)(ddf_fun_t *, unsigned, 73 73 unsigned, unsigned, pcm_sample_format_t); 74 int (*stop_playback)(ddf_fun_t * , unsigned);75 int (*start_record)(ddf_fun_t *, unsigned, unsigned,74 int (*stop_playback)(ddf_fun_t *); 75 int (*start_record)(ddf_fun_t *, unsigned, 76 76 unsigned, unsigned, pcm_sample_format_t); 77 int (*stop_record)(ddf_fun_t * , unsigned);77 int (*stop_record)(ddf_fun_t *); 78 78 } audio_pcm_iface_t; 79 79
Note:
See TracChangeset
for help on using the changeset viewer.