OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
audio: Add callback event to asynchronously notify error
[android-x86/hardware-libhardware.git]
/
include
/
hardware
/
audio.h
diff --git
a/include/hardware/audio.h
b/include/hardware/audio.h
index
36bfa86
..
ec7fd4b
100644
(file)
--- a/
include/hardware/audio.h
+++ b/
include/hardware/audio.h
@@
-253,7
+253,8
@@
typedef struct audio_stream audio_stream_t;
/* type of asynchronous write callback events. Mutually exclusive */
typedef enum {
STREAM_CBK_EVENT_WRITE_READY, /* non blocking write completed */
/* type of asynchronous write callback events. Mutually exclusive */
typedef enum {
STREAM_CBK_EVENT_WRITE_READY, /* non blocking write completed */
- STREAM_CBK_EVENT_DRAIN_READY /* drain completed */
+ STREAM_CBK_EVENT_DRAIN_READY, /* drain completed */
+ STREAM_CBK_EVENT_ERROR, /* stream hit some error, let AF take action */
} stream_callback_event_t;
typedef int (*stream_callback_t)(stream_callback_event_t event, void *param, void *cookie);
} stream_callback_event_t;
typedef int (*stream_callback_t)(stream_callback_event_t event, void *param, void *cookie);