summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/cd
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-14 11:07:19 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-14 11:07:19 (GMT)
commite55fef17990a0957508334e7e5f30bd7fd5fc920 (patch)
tree3b464fe6d2837eaf42e79b130c0819611044d4eb /Demo/sgi/cd
parente8b8207571be69b092a6a15239fb0d1fdf02a8ef (diff)
downloadcpython-e55fef17990a0957508334e7e5f30bd7fd5fc920.zip
cpython-e55fef17990a0957508334e7e5f30bd7fd5fc920.tar.gz
cpython-e55fef17990a0957508334e7e5f30bd7fd5fc920.tar.bz2
Moved a few lines out of the try statement
Diffstat (limited to 'Demo/sgi/cd')
-rwxr-xr-xDemo/sgi/cd/playcd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sgi/cd/playcd.py b/Demo/sgi/cd/playcd.py
index 8b24581..132f945 100755
--- a/Demo/sgi/cd/playcd.py
+++ b/Demo/sgi/cd/playcd.py
@@ -39,11 +39,11 @@ def main():
size = player.bestreadsize()
+ oldparams = [AL.OUTPUT_RATE, 0]
+ params = oldparams[:]
+ al.getparams(AL.DEFAULT_DEVICE, oldparams)
+ params[1] = AL.RATE_44100
try:
- oldparams = [AL.OUTPUT_RATE, 0]
- params = oldparams[:]
- al.getparams(AL.DEFAULT_DEVICE, oldparams)
- params[1] = AL.RATE_44100
al.setparams(AL.DEFAULT_DEVICE, params)
config = al.newconfig()
config.setwidth(AL.SAMPLE_16)