sound fix
parent
334abf15d3
commit
83e87b2bb3
4
main.py
4
main.py
|
@ -189,10 +189,12 @@ class previewrend:
|
|||
def select(self, x, y):
|
||||
if f"{x}:{y}" in self._grid:
|
||||
self._grid[f"{x}:{y}"].config(background="cyan")
|
||||
self.update()
|
||||
|
||||
def deselect(self, x, y):
|
||||
if f"{x}:{y}" in self._grid:
|
||||
self._grid[f"{x}:{y}"].config(background="white")
|
||||
self.update()
|
||||
|
||||
def pix(self, x, y, text, bcolor, fcolor):
|
||||
self._xcam.config(text=LH.string("xcam")+str(self._cam.position.x))
|
||||
|
@ -636,7 +638,7 @@ class gsound:
|
|||
game.currentsounds.append(self)
|
||||
|
||||
def play(self):
|
||||
if self._playing == True: return
|
||||
if self._playing == True: self.stop()
|
||||
self._sound = sa.play_buffer(self._data, 2, 2, 44100)
|
||||
self._playing = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue