Python # Audio Player self.mediaPlayer = QMediaPlayer(None, QMediaPlayer.StreamPlayback) self.mediaPlayer.setVolume(25) self.songFile = '' self.mediaPlayer.positionChanged.connect(self.positionChanged) self.mediaPlayer.durationChanged.connect(self.durationChanged) buffer = QAudioBuffer() self.mediaProbe = QAudioProbe() self.mediaProbe.setSource(self.mediaPlayer) self.mediaProbe.audioBufferProbed.connect(lambda: self.processBuffer(buffer)) def processBuffer(self, buffer): print(buffer.startTime())
buffer = QAudioBuffer()