sound fix

main
Justus Jan Nico Wolff 2024-05-28 22:01:00 +02:00
parent 334abf15d3
commit 83e87b2bb3
1 changed files with 3 additions and 1 deletions

View File

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