Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e92ed5e authored by Eric Laurent's avatar Eric Laurent
Browse files

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
parent a768c306
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 */