From e55fef17990a0957508334e7e5f30bd7fd5fc920 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 14 Apr 1992 11:07:19 +0000 Subject: [PATCH] Moved a few lines out of the try statement --- Demo/sgi/cd/playcd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Demo/sgi/cd/playcd.py b/Demo/sgi/cd/playcd.py index 8b24581c381..132f9459867 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)