Added --nostereo option

Ability to disable stereo panning effect (e.g., paint brush, UI
elements sound effect feedback, etc.), useful for users with
hearing impairment in one ear, or situations where one speaker or
headphone is being used.  Use "--nostereo" command-line option
or "nostereo=yes" config. file option.
This commit is contained in:
Bill Kendrick 2019-09-21 16:33:55 -07:00
parent 9db366237c
commit f7d30d3222
13 changed files with 367 additions and 310 deletions

View file

@ -8,7 +8,7 @@ http://www.tuxpaint.org/
$Id$ $Id$
2019.Sep.14 (0.9.24) 2019.Sep.21 (0.9.24)
* New tools * New tools
--------- ---------
* Fill * Fill
@ -67,6 +67,12 @@ $Id$
* Updated some Starter source images so they work better with * Updated some Starter source images so they work better with
flood fill (Bald Eagle, World map, Gecko). flood fill (Bald Eagle, World map, Gecko).
* Ability to disable stereo panning effect (e.g., paint brush, UI
elements sound effect feedback, etc.), useful for users with
hearing impairment in one ear, or situations where one speaker or
headphone is being used. Use "--nostereo" command-line option
or "nostereo=yes" config. file option.
* Documentation updates * Documentation updates
--------------------- ---------------------
* Mended link to MinGW/MSYS instructions at John Popplewell's website. * Mended link to MinGW/MSYS instructions at John Popplewell's website.

View file

@ -3,10 +3,10 @@
Options Documentation Options Documentation
Copyright (c) 2002-2018 by various contributors; see AUTHORS.txt Copyright (c) 2002-2019 by various contributors; see AUTHORS.txt
http://www.tuxpaint.org/ http://www.tuxpaint.org/
December 18, 2018 September 21, 2019
---------------------------------------------------------------------- ----------------------------------------------------------------------
@ -129,6 +129,11 @@ Windows Users
used to reenable sounds if they were disabled using this used to reenable sounds if they were disabled using this
option.) option.)
nostereo=yes
Disable stereo panning support. (Useful for users with hearing
impairment in one ear, or places where a single speaker or
headphone is being used.)
noquit=yes noquit=yes
Disable the on-screen "Quit" button and prevent the [Escape] Disable the on-screen "Quit" button and prevent the [Escape]
@ -963,6 +968,7 @@ Windows Users
--allowscreensaver --allowscreensaver
--startblank --startblank
--nosound --nosound
--nostereo
--noquit --noquit
--noprint --noprint
--printdelay=SECONDS --printdelay=SECONDS
@ -1036,6 +1042,7 @@ Windows Users
--disablescreensaver --disablescreensaver
--startlast --startlast
--sound --sound
--stereo
--quit --quit
--print --print
--printdelay=0 --printdelay=0
@ -1140,283 +1147,281 @@ Available Languages
| |Language |Language |Input Method | | |Language |Language |Input Method |
|Locale Code |(native name) |(English name) |Cycle Key | |Locale Code |(native name) |(English name) |Cycle Key |
| | | |Combination | | | | |Combination |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|C | |English | | |C | |English | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ach_UG |Acoli |Acholi | | |ach_UG |Acoli |Acholi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|af_ZA | |Afrikaans | | |af_ZA | |Afrikaans | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ak_GH | |Akan | | |ak_GH | |Akan | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|am_ET | |Amharic | | |am_ET | |Amharic | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|an_ES | |Aragones | | |an_ES | |Aragones | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ar_SA | |Arabic | | |ar_SA | |Arabic | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|as_IN | |Assamese | | |as_IN | |Assamese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ast_ES | |Asturian | | |ast_ES | |Asturian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|az_AZ | |Azerbaijani | | |az_AZ | |Azerbaijani | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|bm_ML | |Bambara | | |bm_ML | |Bambara | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|bn_IN | |Bengali | | |bn_IN | |Bengali | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|be_BY |Bielaruskaja |Belarusian | | |be_BY |Bielaruskaja |Belarusian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|bg_BG | |Bulgarian | | |bg_BG | |Bulgarian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|bo_CN (*) | |Tibetan | | |bo_CN (*) | |Tibetan | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|br_FR |Brezhoneg |Breton | | |br_FR |Brezhoneg |Breton | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|brx_IN | |Bodo | | |brx_IN | |Bodo | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|bs_BA | |Bosnian | | |bs_BA | |Bosnian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ca_ES |Català |Catalan | | |ca_ES |Català |Catalan | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ca_ES@valencia |Valencia |Valencian | | |ca_ES@valencia |Valencia |Valencian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|cgg_UG |Chiga |Kiga | | |cgg_UG |Chiga |Kiga | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|cs_CZ |Cesky |Czech | | |cs_CZ |Cesky |Czech | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|cy_GB |Cymraeg |Welsh | | |cy_GB |Cymraeg |Welsh | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|da_DK |Dansk |Danish | | |da_DK |Dansk |Danish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|de_DE |Deutsch |German | | |de_DE |Deutsch |German | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|doi_IN | |Dogri | | |doi_IN | |Dogri | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|et_EE | |Estonian | | |et_EE | |Estonian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|el_GR (*) | |Greek | | |el_GR (*) | |Greek | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|en_AU | |Australian | | |en_AU | |Australian | |
| | |English | | | | |English | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|en_CA | |Canadian | | |en_CA | |Canadian English| |
| | |English | | |----------------+----------------+----------------+---------------|
|----------------+----------------+---------------+----------------|
|en_GB | |British English | | |en_GB | |British English | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|en_ZA | |South African | | |en_ZA | |South African | |
| | |English | | | | |English | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|eo | |Esperanto | | |eo | |Esperanto | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|es_ES |Español |Spanish | | |es_ES |Español |Spanish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|es_MX |Español-Mejicano|Mexican Spanish | | |es_MX |Español-Mejicano|Mexican Spanish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|eu_ES |Euskara |Basque | | |eu_ES |Euskara |Basque | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|fa_IR | |Persian | | |fa_IR | |Persian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ff_SN |Fulah |Fula | | |ff_SN |Fulah |Fula | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|fi_FI |Suomi |Finnish | | |fi_FI |Suomi |Finnish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|fo_FO | |Faroese | | |fo_FO | |Faroese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|fr_FR |Français |French | | |fr_FR |Français |French | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ga_IE |Gàidhlig |Irish Gaelic | | |ga_IE |Gàidhlig |Irish Gaelic | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|gd_GB |Ghaidhlig |Scottish Gaelic | | |gd_GB |Ghaidhlig |Scottish Gaelic | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|gl_ES |Galego |Galician | | |gl_ES |Galego |Galician | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|gos_NL |Zudelk |Gronings | | |gos_NL |Zudelk |Gronings | |
| |Veenkelonioals | | | | |Veenkelonioals | | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|gu_IN | |Gujarati | | |gu_IN | |Gujarati | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|he_IL (*) | |Hebrew | | |he_IL (*) | |Hebrew | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|hi_IN (*) | |Hindi | | |hi_IN (*) | |Hindi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|hr_HR |Hrvatski |Croatian | | |hr_HR |Hrvatski |Croatian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|hu_HU |Magyar |Hungarian | | |hu_HU |Magyar |Hungarian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|hy_AM |Hayeren |Armenian | | |hy_AM |Hayeren |Armenian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|id_ID |Bahasa Indonesia|Indonesian | | |id_ID |Bahasa Indonesia|Indonesian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|is_IS |Íslenska |Icelandic | | |is_IS |Íslenska |Icelandic | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|it_IT |Italiano |Italian | | |it_IT |Italiano |Italian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|iu_CA | |Inuktitut | | |iu_CA | |Inuktitut | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ja_JP (*) | |Japanese |right [Alt] | |ja_JP (*) | |Japanese |right [Alt] |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ka_GE | |Georgian | | |ka_GE | |Georgian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|kab | |Kabyle | | |kab | |Kabyle | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|km_KH | |Khmer | | |km_KH | |Khmer | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|kn_IN | |Kannada | | |kn_IN | |Kannada | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ko_KR (*) | |Korean |right [Alt] or | |ko_KR (*) | |Korean |right [Alt] or |
| | | |left [Alt] | | | | |left [Alt] |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|kok_IN | |Konkani | | |kok_IN | |Konkani | |
| | |(Devaganari) | | | | |(Devaganari) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|kok@roman | |Konkani (Roman) | | |kok@roman | |Konkani (Roman) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ks_IN@devanagari| |Kashmiri | | |ks_IN@devanagari| |Kashmiri | |
| | |(Devanagari) | | | | |(Devanagari) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ks_IN | |Kashmiri | | |ks_IN | |Kashmiri | |
| | |(Perso-Arabic) | | | | |(Perso-Arabic) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ku_TR | |Kurdish | | |ku_TR | |Kurdish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|lb_LU |Letzebuergesch |Luxembourgish | | |lb_LU |Letzebuergesch |Luxembourgish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|lg_UG | |Luganda | | |lg_UG | |Luganda | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|lt_LT |Lietuviu |Lithuanian | | |lt_LT |Lietuviu |Lithuanian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|lv_LV | |Latvian | | |lv_LV | |Latvian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mk_MK | |Macedonian | | |mk_MK | |Macedonian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mai_IN | |Maithili | | |mai_IN | |Maithili | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ml_IN | |Malayalam | | |ml_IN | |Malayalam | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mn_MN | |Mongolian | | |mn_MN | |Mongolian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mni_IN | |Manipuri | | |mni_IN | |Manipuri | |
| | |(Bengali) | | | | |(Bengali) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mni@meiteimayek | |Manipuri | | |mni@meiteimayek | |Manipuri (Meitei| |
| | |(Meitei Mayek) | | | | |Mayek) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|mr_IN | |Marathi | | |mr_IN | |Marathi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ms_MY | |Malay | | |ms_MY | |Malay | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|nb_NO |Norsk (bokmål) |Norwegian | | |nb_NO |Norsk (bokmål) |Norwegian Bokmål| |
| | |Bokmål | | |----------------+----------------+----------------+---------------|
|----------------+----------------+---------------+----------------|
|ne_NP |Nepali | | | |ne_NP |Nepali | | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|nl_NL | |Dutch | | |nl_NL | |Dutch | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|nn_NO |Norsk (nynorsk) |Norwegian | | |nn_NO |Norsk (nynorsk) |Norwegian | |
| | |Nynorsk | | | | |Nynorsk | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|nr_ZA | |Ndebele | | |nr_ZA | |Ndebele | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|nso_ZA |Sesotho sa Leboa|Northern Sotho | | |nso_ZA |Sesotho sa Leboa|Northern Sotho | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|oc_FR | |Occitan | | |oc_FR | |Occitan | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|oj_CA | |Ojibwe |Ojibway | |oj_CA | |Ojibwe |Ojibway |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|pa_IN | |Punjabi | | |pa_IN | |Punjabi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|or_IN | |Odia |Oriya | |or_IN | |Odia |Oriya |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|pl_PL |Polski |Polish | | |pl_PL |Polski |Polish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|pt_BR |Portugês |Brazilian | | |pt_BR |Portugês |Brazilian | |
| |Brazileiro |Portuguese | | | |Brazileiro |Portuguese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|pt_PT |Portugês |Portuguese | | |pt_PT |Portugês |Portuguese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ro_RO | |Romanian | | |ro_RO | |Romanian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ru_RU |Russkiy |Russian | | |ru_RU |Russkiy |Russian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|rw_RW | |Kinyarwanda | | |rw_RW | |Kinyarwanda | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sa_IN | |Sanskrit | | |sa_IN | |Sanskrit | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sat_IN | |Santali | | |sat_IN | |Santali | |
| | |(Devaganari) | | | | |(Devaganari) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sat@olchiki | |Santali | | |sat@olchiki | |Santali | |
| | |(Ol-Chikii) | | | | |(Ol-Chikii) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|shs_CA |Secwepemctin |Shuswap | | |shs_CA |Secwepemctin |Shuswap | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|si_LK | |Sinhala | | |si_LK | |Sinhala | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sd_IN@devanagari| |Sindhi | | |sd_IN@devanagari| |Sindhi | |
| | |(Devanagari) | | | | |(Devanagari) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sd_IN | |Sindhi | | |sd_IN | |Sindhi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sk_SK | |Slovak | | |sk_SK | |Slovak | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sl_SI | |Slovenian | | |sl_SI | |Slovenian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|son | |Songhay | | |son | |Songhay | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sq_AL | |Albanian | | |sq_AL | |Albanian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sr_YU | |Serbian | | |sr_YU | |Serbian | |
| | |(cyrillic) | | | | |(cyrillic) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sr_RS@latin | |Serbian (latin) | | |sr_RS@latin | |Serbian (latin) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|su_ID | |Sundanese | | |su_ID | |Sundanese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sv_SE |Svenska |Swedish | | |sv_SE |Svenska |Swedish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|sw_TZ | |Swahili | | |sw_TZ | |Swahili | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ta_IN (*) | |Tamil | | |ta_IN (*) | |Tamil | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|te_IN (*) | |Telugu | | |te_IN (*) | |Telugu | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|th_TH (*) | |Thai | | |th_TH (*) | |Thai | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|tl_PH (*) | |Tagalog | | |tl_PH (*) | |Tagalog | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|tlh |tlhIngan |Klingon | | |tlh |tlhIngan |Klingon | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|tr_TR | |Turkish | | |tr_TR | |Turkish | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|tw_GH | |Twi | | |tw_GH | |Twi | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|uk_UA | |Ukrainian | | |uk_UA | |Ukrainian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ur_IN | |Urdu | | |ur_IN | |Urdu | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|ve_ZA | |Venda | | |ve_ZA | |Venda | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|vec |Venèto |Venetian | | |vec |Venèto |Venetian | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|vi_VN | |Vietnamese | | |vi_VN | |Vietnamese | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|wa_BE | |Walloon | | |wa_BE | |Walloon | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|wo_SN | |Wolof | | |wo_SN | |Wolof | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|xh_ZA | |Xhosa | | |xh_ZA | |Xhosa | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|zh_CN (*) | |Chinese | | |zh_CN (*) | |Chinese | |
| | |(Simplified) | | | | |(Simplified) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|zh_TW (*) | |Chinese | | |zh_TW (*) | |Chinese | |
| | |(Traditional) | | | | |(Traditional) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|zam | |Zapotec | | |zam | |Zapotec | |
| | |(Miahuatlan) | | | | |(Miahuatlan) | |
|----------------+----------------+---------------+----------------| |----------------+----------------+----------------+---------------|
|zu_ZA | |Zulu | | |zu_ZA | |Zulu | |
+------------------------------------------------------------------+ +------------------------------------------------------------------+

View file

@ -6,7 +6,7 @@
Copyright 2002-2019 by various contributors; see AUTHORS.txt Copyright 2002-2019 by various contributors; see AUTHORS.txt
http://www.tuxpaint.org/ http://www.tuxpaint.org/
June 14, 2002 - September 12, 2019 June 14, 2002 - September 21, 2019
---------------------------------------------------------------------- ----------------------------------------------------------------------

View file

@ -16,10 +16,10 @@ version
</h1> </h1>
<h2>Options Documentation</h2> <h2>Options Documentation</h2>
<p>Copyright (c) 2002-2018 by various contributors; see AUTHORS.txt<br/> <p>Copyright (c) 2002-2019 by various contributors; see AUTHORS.txt<br/>
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p> <a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
<p>December 18, 2018</p> <p>September 21, 2019</p>
</center> </center>
@ -174,6 +174,12 @@ version
cannot be used to reenable sounds if they were disabled using this option.) cannot be used to reenable sounds if they were disabled using this option.)
</dd> </dd>
<dt><code><b>nostereo=yes</b></code></dt>
<dd>
Disable stereo panning support. (Useful for users with hearing impairment
in one ear, or places where a single speaker or headphone is being used.)
</dd>
<dt><code><b>noquit=yes</b></code></dt> <dt><code><b>noquit=yes</b></code></dt>
<dd> <dd>
<p>Disable the on-screen "Quit" button and prevent the <b>[Escape]</b> key <p>Disable the on-screen "Quit" button and prevent the <b>[Escape]</b> key
@ -1512,6 +1518,7 @@ version
--allowscreensaver<br> --allowscreensaver<br>
--startblank<br> --startblank<br>
--nosound<br> --nosound<br>
--nostereo<br>
--noquit<br> --noquit<br>
--noprint<br> --noprint<br>
--printdelay=<i>SECONDS</i><br> --printdelay=<i>SECONDS</i><br>
@ -1588,6 +1595,7 @@ version
--disablescreensaver<br> --disablescreensaver<br>
--startlast<br> --startlast<br>
--sound<br> --sound<br>
--stereo<br>
--quit<br> --quit<br>
--print<br> --print<br>
--printdelay=0<br> --printdelay=0<br>

View file

@ -22,7 +22,7 @@ version
<p>June 14, 2002 - <p>June 14, 2002 -
September 12, 2019</p> September 21, 2019</p>
</center> </center>

View file

@ -1,5 +1,5 @@
.\" tuxpaint.1 - 2019.09.12 .\" tuxpaint.1 - 2019.09.21
.TH TUXPAINT 1 "12 September 2019" "0.9.24" "Tux Paint" .TH TUXPAINT 1 "21 September 2019" "0.9.24" "Tux Paint"
.SH NAME .SH NAME
tuxpaint -- "Tux Paint", a drawing program for young children. tuxpaint -- "Tux Paint", a drawing program for young children.
@ -23,6 +23,8 @@ tuxpaint -- "Tux Paint", a drawing program for young children.
.br .br
[\-\-nosound] [\-\-nosound]
.br .br
[\-\-nostereo]
.br
[\-\-noquit] [\-\-noquit]
.br .br
[\-\-noprint] [\-\-noprint]
@ -153,6 +155,8 @@ tuxpaint -- "Tux Paint", a drawing program for young children.
.br .br
[\-\-sound] [\-\-sound]
.br .br
[\-\-stereo]
.br
[\-\-quit] [\-\-quit]
.br .br
[\-\-print] [\-\-print]
@ -287,6 +291,10 @@ e.g. tablet PCs.)
.B \-\-nosound \-\-sound .B \-\-nosound \-\-sound
Disable or enable (default) sound. Disable or enable (default) sound.
.TP 8
.B \-\-nostereo \-\-stereo
Disable or enable (default) stereo panning support.
.TP 8 .TP 8
.B \-\-noquit \-\-quit .B \-\-noquit \-\-quit
Disable or enable (default) the on-screen \fIQuit\fP button and \fIEscape\fP Disable or enable (default) the on-screen \fIQuit\fP button and \fIEscape\fP

View file

@ -146,6 +146,7 @@ shortcuts, NEGBOOL(noshortcuts)
showcursor, NEGBOOL(hide_cursor) showcursor, NEGBOOL(hide_cursor)
simpleshapes, POSBOOL(simple_shapes) simpleshapes, POSBOOL(simple_shapes)
sound, POSBOOL(use_sound) sound, POSBOOL(use_sound)
stereo, POSBOOL(use_stereo)
stampcontrols, NEGBOOL(disable_stamp_controls) stampcontrols, NEGBOOL(disable_stamp_controls)
stamps, NEGBOOL(dont_load_stamps) stamps, NEGBOOL(dont_load_stamps)
stampsize, MULTI(stamp_size_override) stampsize, MULTI(stamp_size_override)

View file

@ -54,6 +54,7 @@ struct cfginfo
const char *start_blank; const char *start_blank;
const char *use_print_config; const char *use_print_config;
const char *use_sound; const char *use_sound;
const char *use_stereo;
const char *wheely; const char *wheely;
const char *mouseaccessibility; const char *mouseaccessibility;
const char *onscreen_keyboard; const char *onscreen_keyboard;

View file

@ -1,7 +1,7 @@
/* /*
playsound.c playsound.c
Copyright (c) 2002-2009 Copyright (c) 2002-2019
http://www.tuxpaint.org/ http://www.tuxpaint.org/
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
@ -31,6 +31,7 @@ Mix_Chunk *sounds[NUM_SOUNDS];
int mute; int mute;
int use_sound = 1; int use_sound = 1;
int use_stereo = 1;
static int old_sound[4] = { -1, -1, -1, -1 }; static int old_sound[4] = { -1, -1, -1, -1 };
/** /**
@ -80,6 +81,9 @@ void playsound(SDL_Surface * screen, int chan, int s, int override, int x, int y
dist = (255 * ((screen->h - 1) - y)) / (screen->h - 1); dist = (255 * ((screen->h - 1) - y)) / (screen->h - 1);
} }
if (use_stereo)
{
if (x == SNDPOS_LEFT) if (x == SNDPOS_LEFT)
left = 255 - dist; left = 255 - dist;
else if (x == SNDPOS_CENTER) else if (x == SNDPOS_CENTER)
@ -95,7 +99,13 @@ void playsound(SDL_Surface * screen, int chan, int s, int override, int x, int y
left = ((255 - dist) * ((screen->w - 1) - x)) / (screen->w - 1); left = ((255 - dist) * ((screen->w - 1) - x)) / (screen->w - 1);
} }
}
else
{
/* Stereo disabled; treat everything like a SNDPOS_CENTER
(equal amount in each of the left/right channels) */
left = (255 - dist) / 2;
}
#ifdef DEBUG #ifdef DEBUG
printf("Panning of sound #%d in channel %d, left=%d, right=%d\n", s, chan, left, (255 - dist) - left); printf("Panning of sound #%d in channel %d, left=%d, right=%d\n", s, chan, left, (255 - dist) - left);
fflush(stdout); fflush(stdout);

View file

@ -1,6 +1,6 @@
/* playsound.h /* playsound.h
Copyright (c) 2002-2009 Copyright (c) 2002-2019
http://www.tuxpaint.org/ http://www.tuxpaint.org/
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
@ -35,7 +35,7 @@
#define SNDDIST_NEAR -999 #define SNDDIST_NEAR -999
extern Mix_Chunk *sounds[NUM_SOUNDS]; extern Mix_Chunk *sounds[NUM_SOUNDS];
extern int mute, use_sound; extern int mute, use_sound, use_stereo;
void playsound(SDL_Surface * screen, int chan, int s, int override, int x, int y); void playsound(SDL_Surface * screen, int chan, int s, int override, int x, int y);

View file

@ -30,6 +30,7 @@ _tuxpaint()
--orient=landscape --orient=portrait \ --orient=landscape --orient=portrait \
-b --startblank --startlast \ -b --startblank --startlast \
--sound -q --nosound \ --sound -q --nosound \
--stereo --nostereo \
-x --noquit --quit -x --noquit --quit
-p --print --noprint \ -p --print --noprint \
--complexshapes -s --simpleshapes \ --complexshapes -s --simpleshapes \

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt) (See COPYING.txt)
June 14, 2002 - August 29, 2019 June 14, 2002 - September 21, 2019
*/ */
@ -6456,6 +6456,7 @@ void show_usage(int exitcode)
" [--orient=landscape | --orient=portrait]\n" " [--orient=landscape | --orient=portrait]\n"
" [--disablescreensaver | --allowscreensaver ]\n" " [--disablescreensaver | --allowscreensaver ]\n"
" [--sound | --nosound]\n" " [--sound | --nosound]\n"
" [--stereo | --nostereo]\n"
" [--colorfile FILE]\n" " [--colorfile FILE]\n"
"\n" "\n"
" Mouse/Keyboard:\n" " Mouse/Keyboard:\n"
@ -18574,7 +18575,15 @@ static void magic_playsound(Mix_Chunk * snd, int left_right, int up_down)
else if (left_right > 255) else if (left_right > 255)
left_right = 255; left_right = 255;
if (use_stereo)
{
left = ((255 - dist) * (255 - left_right)) / 255; left = ((255 - dist) * (255 - left_right)) / 255;
}
else
{
/* Stereo disabled; no panning (see playsound.c) */
left = (255 - dist) / 2;
}
Mix_SetPanning(0, left, (255 - dist) - left); Mix_SetPanning(0, left, (255 - dist) - left);
#endif #endif
@ -22590,6 +22599,7 @@ static void setup_config(char *argv[])
SETBOOL(start_blank); SETBOOL(start_blank);
SETBOOL(use_print_config); SETBOOL(use_print_config);
SETBOOL(use_sound); SETBOOL(use_sound);
SETBOOL(use_stereo);
SETBOOL(wheely); SETBOOL(wheely);
SETBOOL(mouseaccessibility); SETBOOL(mouseaccessibility);
SETBOOL(onscreen_keyboard); SETBOOL(onscreen_keyboard);

View file

@ -7,7 +7,7 @@
# http://www.tuxpaint.org/ # http://www.tuxpaint.org/
# #
# Default distribution version last modified: # Default distribution version last modified:
# April 30, 2012 # September 21, 2019
# #
# $Id$ # $Id$
@ -76,6 +76,13 @@
# sound=yes # sound=yes
### Disable stereo sound (only use mono)?
### -------------------------------------
#
# nostereo=yes
# stereo=yes
### Disable the on-screen 'Quit' button in the toolbar? ### Disable the on-screen 'Quit' button in the toolbar?
### --------------------------------------------------- ### ---------------------------------------------------
### Note: Pressing the [Escape] key, ### Note: Pressing the [Escape] key,