Changeset 902dd4b in mainline for uspace/srv/audio/hound/audio_data.c
- Timestamp:
- 2018-04-15T19:21:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30e9f42, cbc534c
- Parents:
- 2ee0e4a1
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:20:12)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:21:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_data.c
r2ee0e4a1 r902dd4b 42 42 /** 43 43 * Create reference counted buffer out of ordinary data buffer. 44 * @param data audio buffer 44 * @param data audio buffer. The memory passed will be freed eventually. 45 45 * @param size Size of the @p data buffer. 46 * @param fo mart audio data format.46 * @param format audio data format. 47 47 * @return pointer to valid audio data structure, NULL on failure. 48 48 */ 49 audio_data_t *audio_data_create( constvoid *data, size_t size,49 audio_data_t *audio_data_create(void *data, size_t size, 50 50 pcm_format_t format) 51 51 { … … 85 85 atomic_count_t refc = atomic_predec(&adata->refcount); 86 86 if (refc == 0) { 87 free( (void *)adata->data);87 free(adata->data); 88 88 free(adata); 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.