Moved a few lines out of the try statement

This commit is contained in:
Guido van Rossum 1992-04-14 11:07:19 +00:00
parent e8b8207571
commit e55fef1799
1 changed files with 4 additions and 4 deletions

View File

@ -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)