Skip to content

Commit

Permalink
Sound now works on tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
djotaku committed Apr 17, 2024
1 parent 6ad6104 commit b3151dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eldonationtracker/ui/call_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from PyQt6.QtCore import QUrl
from PyQt6.QtGui import QColor, QFont
from PyQt6.QtMultimedia import QMediaPlayer # type: ignore
from PyQt6.QtMultimedia import QAudioOutput, QMediaPlayer # type: ignore
from PyQt6.QtWidgets import QDialog, QGraphicsPixmapItem, QGraphicsScene

from eldonationtracker import file_logging
Expand Down Expand Up @@ -60,7 +60,11 @@ def __init__(self, participant_conf, participant):
self.pixmap = QtGui.QPixmap()
self._load_image()
self.ui.graphicsView.setScene(self.scene)
# audio
self.donation_player = QMediaPlayer()
self.audioOutput = QAudioOutput()
self.donation_player.setAudioOutput(self.audioOutput)
#self.donation_player.positionChanged.connect(self.positionChanged)
self._load_sound()
# timer to update the main text
self.timer = QtCore.QTimer(self)
Expand Down

0 comments on commit b3151dd

Please sign in to comment.