[prev in list] [next in list] [prev in thread] [next in thread]
List: python-edu-sig
Subject: [Edu-sig] Snack question
From: rodrigo.senra () terra ! com ! br (Rodrigo Dias Arruda Senra)
Date: 2004-07-23 1:51:43
Message-ID: 20040722205231.509fa42a () Goku
[Download RAW message or body]
|
| >I'm a novice Python programmer who wants to use Snatch. I have everything \
installed correctly as far as I can tell. But when I try to play something I get an \
error that says I failed to set the number of channels. Here's what I get: | >
| >
| >
| >>>>from Tkinter import *
| >>>>root = Tk()
| >>>>import tkSnack
| >>>>tkSnack.initializeSnack(root)
| >>>>snd=tkSnack.Sound()
| >>>>snd.read('/usr/games/chromium/data/wav/music_game.wav')
| >>>>snd.play()
| >>>>
| >>>>
| >Traceback (most recent call last):
| > File "<stdin>", line 1, in ?
| > File "/usr/lib/python2.2/site-packages/tkSnack.py", line 277, in play
| > self.tk.call((self.name, 'play') + self._options(kw))
| >TclError: Failed setting number of channels.
| >
| >Any help will be most welcome.
I'm not a Snack expert, but have you tried with a different
file other than '/usr/games/chromium/data/wav/music_game.wav' ?
Perhaps this file uses more sound channels than your hardware have.
Just a wild guess.
best regards,
Senra
,_
| ) Rodrigo Senra <rsenra |at| acm.org>
|(______ -----------------------------------------------
_( (|__|] GPr Sistemas http://www.gpr.com.br
_ | (|___|] IC - Unicamp http://www.ic.unicamp.br/~921234
___ (|__|]
L___(|_|] -----------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic