Changeset 231c770 in mainline for uspace/srv/audio/hound/audio_data.h


Ignore:
Timestamp:
2018-04-06T21:29:11Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
105fcf0
Parents:
2f1c88e
git-author:
Jakub Jermar <jakub@…> (2018-04-06 20:59:41)
git-committer:
Jakub Jermar <jakub@…> (2018-04-06 21:29:11)
Message:

Fix handling of hound audio data

Commit 33b8d024bc268f2773c26e74a40dada11bb71e58 broke audio.

Hound needs to modify the buffer even after audio_data_create() returns.
The original buffer also needs to be eventually deallocated. Lastly,
the extra data copy may introduce undesired latencies.

This commit reverts the offending parts of
33b8d024bc268f2773c26e74a40dada11bb71e58.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/audio_data.h

    r2f1c88e r231c770  
    4545/** Reference counted audio buffer */
    4646typedef struct {
     47        /** Audio data */
     48        const void *data;
    4749        /** Size of the buffer pointer to by data */
    4850        size_t size;
     
    5153        /** Reference counter */
    5254        atomic_t refcount;
    53         /** Audio data */
    54         const uint8_t data[];
    5555} audio_data_t;
    5656
Note: See TracChangeset for help on using the changeset viewer.