diff options
author | tinyalsa <simonwilson@google.com> | 2012-02-10 14:48:21 -0800 |
---|---|---|
committer | tinyalsa <simonwilson@google.com> | 2012-02-10 14:48:21 -0800 |
commit | d88eedb72a6deea7d2751e4b80674607cccebdef (patch) | |
tree | fb5b3f5a9f8883b62476d11f5d2910e51949c0de /include | |
parent | 19eda2de961aced7365a31a02ec210a43f03efad (diff) | |
parent | 6bbe77a79ad7d82e11ab0e76fe14261573a10f71 (diff) |
Merge pull request #11 from broonie/const-write
pcm: Constify write buffers
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index a6d5436..cac2786 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -133,13 +133,13 @@ int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail, * Will start playback on the first write or on a write that * occurs after a fifo underrun. */ -int pcm_write(struct pcm *pcm, void *data, unsigned int count); +int pcm_write(struct pcm *pcm, const void *data, unsigned int count); int pcm_read(struct pcm *pcm, void *data, unsigned int count); /* * mmap() support. */ -int pcm_mmap_write(struct pcm *pcm, void *data, unsigned int count); +int pcm_mmap_write(struct pcm *pcm, const void *data, unsigned int count); int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset, unsigned int *frames); int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames); |