commit | bfb071df71af73c4d6804349d1453627db6b4661 | [log] [tgz] |
---|---|---|
author | Paul Eastham <eastham@google.com> | Fri Aug 06 14:11:55 2010 -0700 |
committer | Paul Eastham <eastham@google.com> | Fri Aug 06 14:58:34 2010 -0700 |
tree | f87492bba39608d895eac9d33695f170e29850ec | |
parent | 230182701c5d1dac7c092152a0c41841f5e444b7 [diff] [blame] |
Add support for playing a sound before/after dumpstate.
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index c7a78cc..f92acbbb 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c
@@ -429,3 +429,7 @@ rename(anr_traces_path, traces_path); return dump_traces_path; } + +void play_sound(const char* path) { + run_command(NULL, 5, "/system/bin/stagefright", "-o", "-a", path, NULL); +}