Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified sounds/move.wav
100644 → 100755
Binary file not shown.
Binary file added sounds/take.wav
Binary file not shown.
6 changes: 6 additions & 0 deletions tcl/lang/catalan.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,12 @@ translate K SoundsAnnounceNew {Anunciar noves jugades quan estiguin fetes}
translate K SoundsAnnounceForward {Anunciar jugades quan avancem una jugada}
translate K SoundsAnnounceBack {Anunciar jugada quan rectifiquem o retrocedim una jugada}
translate K SoundsSoundDisabled {L'Scid no ha pogut trobar el paquet d'�udio Snack al inicialitzar;\nEl so est� desactivat.}
# ====== TODO To be translated ======
translate K Off { Off }
# ====== TODO To be translated ======
translate K Talk { Talk }
# ====== TODO To be translated ======
translate K Sound { Sound }

# Upgrading databases:
translate K Upgrading {Actualitzaci�}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/czech.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,12 @@ translate C SoundsAnnounceForward {Oznamovat tahy p
translate C SoundsAnnounceBack {Oznamovat p�i vzet� tahu zp�t nebo posunu o tah zp�t}
# ====== TODO To be translated ======
translate C SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate C Off { Off }
# ====== TODO To be translated ======
translate C Talk { Talk }
# ====== TODO To be translated ======
translate C Sound { Sound }

# Upgrading databases:
translate C Upgrading {Upgrade}
Expand Down
3 changes: 3 additions & 0 deletions tcl/lang/deutsch.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,9 @@ translate D SoundsAnnounceNew {K
translate D SoundsAnnounceForward {K�nde Zug an beim Vorw�rtspielen}
translate D SoundsAnnounceBack {K�ndige Zug an beim Zur�ckgehen}
translate D SoundsSoundDisabled {Scid hat das Snack Audio Paket beim Start nicht gefunden.\nTon ist abgeschaltet.}
translate D Off { Aus }
translate D Talk { Sprache }
translate D Sound { Toneffekt }

# Upgrading databases:
translate D Upgrading {Upgrading}
Expand Down
3 changes: 3 additions & 0 deletions tcl/lang/english.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,9 @@ translate E SoundsAnnounceNew {Announce new moves as they are made}
translate E SoundsAnnounceForward {Announce moves when moving forward one move}
translate E SoundsAnnounceBack {Announce when retracting or moving back one move}
translate E SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
translate E Off { Off }
translate E Talk { Talk }
translate E Sound { Sound }

# Upgrading databases:
translate E Upgrading {Upgrading}
Expand Down
3 changes: 3 additions & 0 deletions tcl/lang/francais.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,9 @@ translate F SoundsAnnounceNew {Annoncer les coups joués}
translate F SoundsAnnounceForward {Annoncer les coups quand avance d'un coup}
translate F SoundsAnnounceBack {Annoncer quand retour arrière d'un coup}
translate F SoundsSoundDisabled {Scid n'a pas pu trouver le paquet audio de Snack au démarrage;\nle son est désactivé.}
translate F Off { Arrêt }
translate F Talk { Parler }
translate F Sound { Son }

# Upgrading databases:
translate F Upgrading {Mise à jour}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/greek.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,12 @@ translate G SoundsAnnounceForward {Αναγγελία όταν πρόκειτα
translate G SoundsAnnounceBack {Αναγγελία όταν πρόκειται για αναδρομή ή για κίνηση προς τα πίσω}
# ====== TODO To be translated ======
translate G SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate G Off { Off }
# ====== TODO To be translated ======
translate G Talk { Talk }
# ====== TODO To be translated ======
translate G Sound { Sound }

# Upgrading databases:
translate G Upgrading {Ενημέρωση}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/hungary.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,12 @@ translate H SoundsAnnounceForward {L
translate H SoundsAnnounceBack {L�p�s bemond�sa amikor visszavesz�nk vagy egy l�p�st h�tra l�p�nk}
# ====== TODO To be translated ======
translate H SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate H Off { Off }
# ====== TODO To be translated ======
translate H Talk { Talk }
# ====== TODO To be translated ======
translate H Sound { Sound }

# Upgrading databases:
translate H Upgrading {Fel�j�t�s}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/italian.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,12 @@ translate I SoundsAnnounceNew {Annuncia l'esecuzione di una nuova mossa}
translate I SoundsAnnounceForward {Annuncia quando si va avanti di una mossa}
translate I SoundsAnnounceBack {Annuncia quando si va indietro di una mossa}
translate I SoundsSoundDisabled {Scid non è riuscito a trovare il pacchetto audio Snack all'avvio;\nSound è disabilitato.}
# ====== TODO To be translated ======
translate I Off { Off }
# ====== TODO To be translated ======
translate I Talk { Talk }
# ====== TODO To be translated ======
translate I Sound { Sound }

# Upgrading databases:
translate I Upgrading {Aggiornamento}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/nederlan.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,12 @@ translate N SoundsAnnounceNew {Kondig nieuwe zetten aan als ze gedaan worden} ;
translate N SoundsAnnounceForward {Kondig aan als ��n zet vooruit gedaan wordt} ;
translate N SoundsAnnounceBack {Kondig aan als ��n zet terug gedaan of genomen wordt} ;
translate N SoundsSoundDisabled {Scid kon het snack-audiopakket niet vinden bij het opstarten;\nhet geluid is uitgeschakeld.}
# ====== TODO To be translated ======
translate N Off { Off }
# ====== TODO To be translated ======
translate N Talk { Talk }
# ====== TODO To be translated ======
translate N Sound { Sound }

# Upgrading databases:
translate N Upgrading {Bijwerken}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/norsk.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,12 @@ translate O SoundsAnnounceForward {Announce moves when moving forward one move}
translate O SoundsAnnounceBack {Announce when retracting or moving back one move} ;# ***
# ====== TODO To be translated ======
translate O SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate O Off { Off }
# ====== TODO To be translated ======
translate O Talk { Talk }
# ====== TODO To be translated ======
translate O Sound { Sound }

# Upgrading databases:
translate O Upgrading {Oppgraderer}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/polish.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,12 @@ translate P SoundsAnnounceForward {Announce moves when moving forward one move}
translate P SoundsAnnounceBack {Announce when retracting or moving back one move} ;# ***
# ====== TODO To be translated ======
translate P SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate P Off { Off }
# ====== TODO To be translated ======
translate P Talk { Talk }
# ====== TODO To be translated ======
translate P Sound { Sound }

# Upgrading databases:
translate P Upgrading {Konwersja}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/portbr.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,12 @@ translate B SoundsAnnounceNew {Anuncia novos movimentos quando eles s
translate B SoundsAnnounceForward {Anuncia movimentos quando avan�ar um movimento}
translate B SoundsAnnounceBack {Anuncia movimentos quando retroceder um movimento}
translate B SoundsSoundDisabled {O Scid n�o conseguiu encontrar o pacote de �udio Snack na inicializa��o;\nSound est� desativado.}
# ====== TODO To be translated ======
translate B Off { Off }
# ====== TODO To be translated ======
translate B Talk { Talk }
# ====== TODO To be translated ======
translate B Sound { Sound }

# Upgrading databases:
translate B Upgrading {Atualizando}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/russian.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,12 @@ translate R SoundsAnnounceNew {Уведомлять о новых ходах, к
translate R SoundsAnnounceForward {Уведомлять о ходе, когда сделан один ход вперёд}
translate R SoundsAnnounceBack {Уведомлять о сокращении или отмене одного хода}
translate R SoundsSoundDisabled {Scid не смог найти аудио пакет Snack при запуске; \nSound отключен.}
# ====== TODO To be translated ======
translate R Off { Off }
# ====== TODO To be translated ======
translate R Talk { Talk }
# ====== TODO To be translated ======
translate R Sound { Sound }

# Upgrading databases:
translate R Upgrading {Модернизация}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/serbian.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,12 @@ translate Y SoundsAnnounceForward {Announce moves when moving forward one move}
translate Y SoundsAnnounceBack {Announce when retracting or moving back one move} ;# ***
# ====== TODO To be translated ======
translate Y SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate Y Off { Off }
# ====== TODO To be translated ======
translate Y Talk { Talk }
# ====== TODO To be translated ======
translate Y Sound { Sound }

# Upgrading databases:
translate Y Upgrading {Unapre�ivanje}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/spanish.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,12 @@ translate S SoundsAnnounceNew {Anunciar nuevos movimientos cuando sean hechos}
translate S SoundsAnnounceForward {Anunciar movimientos cuando avancemos un movimiento}
translate S SoundsAnnounceBack {Anunciar movimiento cuando rectifiquemos o retrocedamos una jugada}
translate S SoundsSoundDisabled {Scid no pudo encontrar el paquete de audio de Snack al inicio.\nEl sonido est� desactivado.}
# ====== TODO To be translated ======
translate S Off { Off }
# ====== TODO To be translated ======
translate S Talk { Talk }
# ====== TODO To be translated ======
translate S Sound { Sound }

# Upgrading databases:
translate S Upgrading {Actualizaci�n}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/suomi.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,12 @@ translate U SoundsAnnounceForward {Ilmoita, kun siirryt
translate U SoundsAnnounceBack {Ilmoita, kun siirryt��n taaksep�in yksi siirto}
# ====== TODO To be translated ======
translate U SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate U Off { Off }
# ====== TODO To be translated ======
translate U Talk { Talk }
# ====== TODO To be translated ======
translate U Sound { Sound }

# Upgrading databases:
translate U Upgrading {P�ivitys}
Expand Down
6 changes: 6 additions & 0 deletions tcl/lang/swedish.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,12 @@ translate W SoundsAnnounceForward {Annonsera drag n
translate W SoundsAnnounceBack {Annonsera drag n�r du g�r fram eller tillbaka ett drag}
# ====== TODO To be translated ======
translate W SoundsSoundDisabled {Scid could not find the Snack audio package at startup;\nSound is disabled.}
# ====== TODO To be translated ======
translate W Off { Off }
# ====== TODO To be translated ======
translate W Talk { Talk }
# ====== TODO To be translated ======
translate W Sound { Sound }

# Upgrading databases:
translate W Upgrading {Uppdaterar}
Expand Down
28 changes: 21 additions & 7 deletions tcl/utils/sound.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set ::utils::sound::isPlayingSound 0
set ::utils::sound::soundQueue {}
set ::utils::sound::soundFiles [list \
King Queen Rook Bishop Knight CastleQ CastleK Back Mate Promote Check \
a b c d e f g h x 1 2 3 4 5 6 7 8 move alert]
a b c d e f g h x 1 2 3 4 5 6 7 8 move alert take]

# soundMap
#
Expand Down Expand Up @@ -117,17 +117,23 @@ proc ::utils::sound::AnnounceMove {move} {


proc ::utils::sound::AnnounceNewMove {move} {
if {$::utils::sound::announceNew} { AnnounceMove $move }
switch $::utils::sound::announceNew {
1 { AnnounceMove $move }
2 { if { [string first "x" $move] > 0 } { PlaySound sound_take } else { PlaySound sound_move }}
}
}


proc ::utils::sound::AnnounceForward {move} {
if {$::utils::sound::announceForward} { AnnounceMove $move }
switch $::utils::sound::announceForward {
1 { AnnounceMove $move }
2 { if { [string first "x" $move] > 0 } { PlaySound sound_take } else { PlaySound sound_move }}
}
}


proc ::utils::sound::AnnounceBack {} {
if {$::utils::sound::announceBack} { AnnounceMove U }
if {$::utils::sound::announceBack} { PlaySound sound_move }
}


Expand Down Expand Up @@ -194,10 +200,18 @@ proc ::utils::sound::OptionsDialog { w } {
ttk::label $w.status -text [tr SoundsSoundDisabled]
pack $w.status -side bottom
}
ttk::checkbutton $w.n -variable ::utils::sound::announceNew -text [tr SoundsAnnounceNew]
ttk::checkbutton $w.f -variable ::utils::sound::announceForward -text [tr SoundsAnnounceForward]
ttk::labelframe $w.n -text " [tr SoundsAnnounceNew] "
ttk::radiobutton $w.n.n0 -variable ::utils::sound::announceNew -text [tr Off] -value 0
ttk::radiobutton $w.n.n1 -variable ::utils::sound::announceNew -text [tr Talk] -value 1
ttk::radiobutton $w.n.n2 -variable ::utils::sound::announceNew -text [tr Sound] -value 2
ttk::labelframe $w.f -text " [tr SoundsAnnounceForward] "
ttk::radiobutton $w.f.n0 -variable ::utils::sound::announceForward -text [tr Off] -value 0
ttk::radiobutton $w.f.n1 -variable ::utils::sound::announceForward -text [tr Talk] -value 1
ttk::radiobutton $w.f.n2 -variable ::utils::sound::announceForward -text [tr Sound] -value 2
ttk::checkbutton $w.b -variable ::utils::sound::announceBack -text [tr SoundsAnnounceBack]
pack $w.n $w.f $w.b -side top -anchor w -padx "0 5"
pack $w.n.n0 $w.n.n1 $w.n.n2 -side left -anchor w -padx "0 5"
pack $w.f.n0 $w.f.n1 $w.f.n2 -side left -anchor w -padx "0 5"
pack $w.n $w.f $w.b -side top -anchor w -padx "0 5" -pady 5
}

proc ::utils::sound::GetDialogChooseFolder { widget } {
Expand Down