This commit is contained in:
tsi-billypom 2024-07-29 14:31:24 -04:00
parent 1391385493
commit 027cc3f664
2 changed files with 7 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class MusicTable(QTableView):
menu.exec_(event.globalPos()) menu.exec_(event.globalPos())
def delete_songs(self): def delete_songs(self):
"""Deletes the currently selected songs from the db and table (not the filesystem)""" """Deletes the currently selected songs from the db and music table (not the filesystem)"""
reply = QMessageBox.question( reply = QMessageBox.question(
self, self,
"Confirmation", "Confirmation",
@ -147,7 +147,10 @@ class MusicTable(QTableView):
Popen(["xdg-open", path]) Popen(["xdg-open", path])
def edit_selected_files_metadata(self): def edit_selected_files_metadata(self):
# FIXME:
"""Opens a form with metadata from the selected audio files"""
files = self.get_selected_songs_filepaths() files = self.get_selected_songs_filepaths()
return
def add_selected_files_to_playlist(self): def add_selected_files_to_playlist(self):
"""Opens a playlist choice menu and adds the currently selected files to the chosen playlist""" """Opens a playlist choice menu and adds the currently selected files to the chosen playlist"""

View File

@ -51,8 +51,11 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow):
stopped = False stopped = False
# Initialization # Initialization
self.player = QMediaPlayer() # Audio player object self.player = QMediaPlayer() # Audio player object
print(f"QMediaPlayer() = {self.player}")
self.probe = QAudioProbe() # Gets audio data self.probe = QAudioProbe() # Gets audio data
print(f"QAudioProbe() = {self.probe}")
self.timer = QTimer(self) # Audio timing things self.timer = QTimer(self) # Audio timing things
print(f"QTimer() = {self.timer}")
# self.music_table_model = QStandardItemModel(self) # Table library listing # self.music_table_model = QStandardItemModel(self) # Table library listing
self.audio_visualizer = AudioVisualizer(self.player) self.audio_visualizer = AudioVisualizer(self.player)
self.current_volume = 50 self.current_volume = 50