From 134aea8dd229daf938b109af7176be667e4201fb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Apr 2015 18:19:04 +0200 Subject: add telephony-and-music example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/examples/telephony-and-music/README | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/examples/telephony-and-music/README (limited to 'doc/examples/telephony-and-music/README') diff --git a/doc/examples/telephony-and-music/README b/doc/examples/telephony-and-music/README new file mode 100644 index 0000000..7c97878 --- /dev/null +++ b/doc/examples/telephony-and-music/README @@ -0,0 +1,30 @@ +Use-case example. + +Assume you have a music player and a telephony program. +You might like it if the music player pauses whenever +you make or receive a call. You may also like it, if +the music resumed when the call ended. + +In this example we will assume you the have moc/mocp +running. And we will use the shell to simulate a +telephony program. + + + +First of, run make to build this example. +Before starting run ./init. +And when you are done run ./cleanup. + +In one terminal run ./monitor. This program will +pause mocp when you make or receive a call, it will +also resume mocp when all calls have ended if it +did pause mocp. + +Then start any positive number of terminals. +We will pretend that each of them are telephony +programs. To make or receive a call, run +./receive-or-make-call, when you want to end +the pretend call, run ./end-call from the +terminal (or more accurately, from the same +process). + -- cgit v1.2.3-70-g09d2