diff options
author | Eric Laurent <elaurent@google.com> | 2014-07-28 09:26:06 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-07-28 14:31:58 -0700 |
commit | 1e92ed5e83474c157237de18af5b2201095f37e3 (patch) | |
tree | 807321876bbbbeb929b26ac0c5950baba281e06e /include/system | |
parent | a768c306b2391b8b573f047de3416c693fa50e62 (diff) | |
download | system_core-1e92ed5e83474c157237de18af5b2201095f37e3.zip system_core-1e92ed5e83474c157237de18af5b2201095f37e3.tar.gz system_core-1e92ed5e83474c157237de18af5b2201095f37e3.tar.bz2 |
audio: define type for unique audio Ids.
Define a type for unique audio Ids allocated by AudioFLinger
for use as session Ids or I/O handles.
Bug: 12378680.
Change-Id: Ic9019fff97a1227b60e48c88c57d25dbbdcd7d1e
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/audio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system/audio.h b/include/system/audio.h index a287389..719a7c4 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -173,6 +173,11 @@ typedef enum { AUDIO_SESSION_ALLOCATE = 0, } audio_session_t; +/* a unique ID allocated by AudioFlinger for use as a audio_io_handle_t or audio_session_t */ +typedef int audio_unique_id_t; + +#define AUDIO_UNIQUE_ID_ALLOCATE AUDIO_SESSION_ALLOCATE + /* Audio sub formats (see enum audio_format). */ /* PCM sub formats */ |