diff options
author | Guido van Rossum <guido@python.org> | 1992-04-14 11:07:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-04-14 11:07:19 (GMT) |
commit | e55fef17990a0957508334e7e5f30bd7fd5fc920 (patch) | |
tree | 3b464fe6d2837eaf42e79b130c0819611044d4eb /Demo/sgi/cd | |
parent | e8b8207571be69b092a6a15239fb0d1fdf02a8ef (diff) | |
download | cpython-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-x | Demo/sgi/cd/playcd.py | 8 |
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) |