summaryrefslogtreecommitdiff
path: root/doc/examples/mp3.json
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/mp3.json')
-rw-r--r--doc/examples/mp3.json90
1 files changed, 24 insertions, 66 deletions
diff --git a/doc/examples/mp3.json b/doc/examples/mp3.json
index 231358e..c1b40f0 100644
--- a/doc/examples/mp3.json
+++ b/doc/examples/mp3.json
@@ -6,95 +6,53 @@
"phases" : {
"p1" : {
"loop" : 1,
- "lock1" : "trig0_mutex",
- "signal2" : "trig0",
- "unlock3" : "trig0_mutex",
- "timer4" : { "ref" : "tick", "period": 6000 },
+ "resume" : "AudioOut",
+ "timer" : { "ref" : "tick", "period": 6000 },
},
"p2" : {
"loop" : 4,
- "timer0" : { "ref" : "tick", "period": 6000 },
+ "timer" : { "ref" : "tick", "period": 6000 },
}
}
},
"AudioOut" : {
"priority" : -19,
"loop" : -1,
- "phases" : {
- "p1" : {
- "loop" : 1,
- "run3" : 275,
- "lock4" : "trig1_mutex",
- "signal5" : "trig1",
- "unlock6" : "trig1_mutex",
- "run7" : 4725,
- "lock0" : "trig0_mutex",
- "wait1" : { "ref" : "wait0", "mutex": "trig0_mutex" },
- "unlock2" : "trig0_mutex",
- },
- }
+ "run" : 275,
+ "resume" : "AudioTrack",
+ "run" : 4725,
+ "suspend",
},
"AudioTrack" : {
"priority" : -16,
"loop" : -1,
- "lock0" : "trig1_mutex",
- "wait1" : { "ref" : "wait1", "mutex": "trig1_mutex" },
- "unlock2" : "trig1_mutex",
- "run3" : 300,
- "signal4" : "trig2",
+ "suspend",
+ "run" : 300,
+ "resume" : "mp3.decoder",
},
"mp3.decoder" : {
"priority" : -2,
"loop" : -1,
- "lock0" : "trig2_mutex",
- "wait1" : { "ref" : "wait2", "mutex": "trig2_mutex" },
- "unlock2" : "trig2_mutex",
- "run3" : 1000,
- "lock4" : "trig3_mutex",
- "signal5" : "trig3",
- "wait6" : { "ref" : "wait3", "mutex": "trig3_mutex" },
- "unlock7" : "trig3_mutex",
- "run8" : 150,
+ "suspend",
+ "run" : 1000,
+ "lock" : "mutex",
+ "signal" : "queue",
+ "wait" : { "ref" : "queue", "mutex": "mutex" },
+ "unlock" : "mutex",
+ "run" : 150,
},
"OMXCall" : {
"priority" : -2,
"loop" : -1,
- "phases" : {
- "p1" : {
- "lock0" : "trig3_mutex",
- "wait1" : { "ref" : "wait3", "mutex": "trig3_mutex" },
- "unlock2" : "trig3_mutex",
- "run3" : 300,
- "lock4" : "trig3_mutex",
- "signal5" : "trig3",
- "unlock6" : "trig3_mutex",
- },
- "p2" : {
- "lock0" : "trig3_mutex",
- "wait1" : { "ref" : "wait3", "mutex": "trig3_mutex" },
- "unlock2" : "trig3_mutex",
- "run3" : 300,
- "lock4" : "trig3_mutex",
- "signal5" : "trig3",
- "unlock6" : "trig3_mutex",
- } }
+ "lock" : "mutex",
+ "wait" : { "ref" : "queue", "mutex": "mutex" },
+ "unlock" : "mutex",
+ "run" : 300,
+ "lock" : "mutex",
+ "signal" : "queue",
+ "unlock" : "mutex",
},
},
- "resources" : {
- "tick" : { "type" : "timer" },
- "trig0_mutex" : { "type" : "mutex" },
- "wait0" : { "type" : "wait" },
- "trig0" : { "type" : "signal", "target" : "wait0" },
- "trig1_mutex" : { "type" : "mutex" },
- "wait1" : { "type" : "wait" },
- "trig1" : { "type" : "signal", "target" : "wait1" },
- "trig2_mutex" : { "type" : "mutex" },
- "wait2" : { "type" : "wait" },
- "trig2" : { "type" : "signal", "target" : "wait2" },
- "trig3_mutex" : { "type" : "mutex" },
- "wait3" : { "type" : "wait" },
- "trig3" : { "type" : "signal", "target" : "wait3" },
- },
"global" : {
"default_policy" : "SCHED_OTHER",
"duration" : 5,