projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sketch in sound support
[tabakrolletjie.git]
/
tabakrolletjie
/
constants.py
diff --git
a/tabakrolletjie/constants.py
b/tabakrolletjie/constants.py
index 8edc2e914390357b479b1cba77810648a532a7ef..380c27780a3e3672dcaf4c40a1d6731c633f206f 100644
(file)
--- a/
tabakrolletjie/constants.py
+++ b/
tabakrolletjie/constants.py
@@
-27,3
+27,12
@@
FITTINGS_CATEGORY = 1 << 3
FONTS = {
'sans': 'DejaVuSans.ttf',
}
+
+# Sound stuff
+FREQ = 44100
+BITSIZE = -16
+CHANNELS = 2
+BUFFER = 1024
+DEFAULT_VOLUME = 1.0
+
+NO_SOUND = os.environ.get("TABAK_NO_SOUND", "").lower() in ("1", "y", "yes")