From d0555983d175e76585b2409d982e09f444eab391 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 15 Mar 2020 22:26:19 +0100 Subject: [PATCH] Rename DEVELOPMENT -> DEVELOP.md and add some stuff about player stress testing. --- DEVELOP.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ DEVELOPMENT | 7 ------- 2 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 DEVELOP.md delete mode 100644 DEVELOPMENT diff --git a/DEVELOP.md b/DEVELOP.md new file mode 100644 index 000000000..6896900dd --- /dev/null +++ b/DEVELOP.md @@ -0,0 +1,56 @@ +# DCP-o-matic development notes + +This file collects a few notes relevant to DCP-o-matic developers. There is also some information +[on the web site](https://dcpomatic.com/development). + + +## Player stress testing + +If you configure DCP-o-matic with `--enable-player-stress-test` you can make a script which +will run and manipulate the player in predictable ways. The script is a series of commands +read line-by-line, and each line can be one of: + +* `O ` + +Open a DCP, for example + +```O /home/carl/DCP/MyTestDCP``` + +* `P` + +Start playing the currently-loaded DCP. + +* `W ` + +Wait for approximately the given time before carrying on, for example + +```W 14000``` + +to wait for 14 seconds. + +* `S` + +Stop any current playback. + +* `K ` + +Seek to some point in the current DCP, where 0 is the start and 4095 is the end; for example + +```S 2048``` + +seeks half-way through the DCP. + +The script can be run using something like + +```dcpomatic2_player -s stress``` + +to load a script file called `stress` and start executing it. + + +Adding a new language + +- Edit src/wx/config_dialog.cc to add the language to languages. +- Add to platform/windows/wscript, platform/osx/make_dmg.sh, cscript. +- Add credit to src/wx/about_dialog.cc and database. +- Add to i18n.php on website and update-i18n-stats script. + diff --git a/DEVELOPMENT b/DEVELOPMENT deleted file mode 100644 index 1bced0490..000000000 --- a/DEVELOPMENT +++ /dev/null @@ -1,7 +0,0 @@ -Adding a new language - -- Edit src/wx/config_dialog.cc to add the language to languages. -- Add to platform/windows/wscript, platform/osx/make_dmg.sh, cscript. -- Add credit to src/wx/about_dialog.cc and database. -- Add to i18n.php on website and update-i18n-stats script. - -- 2.30.2