performous / composer

Song editor for Performous and other singing games
Other
39 stars 23 forks source link

Can't play audio #52

Open hermann-p opened 1 year ago

hermann-p commented 1 year ago

Composer & operating system versions

Composer: git latest 2023-05-03 OS: Linux (NixOS)

What is the problem?

The UI works, I can import audio files and text, drag around notes export result files etc.
But when I click on "Play (P)", nothing happens.
During start up I get following error message:

QMetaObject::connectSlotsByName: No matching signal for on_actionVideoFile_triggered()
QAudioDevice info
Supported codecs:  
"audio/pcm"  
Supported sample rates:  
8000  
11025
22050
44100
48000
Supported sample sizes:
8
16
24
32
Supported sample types:
1
2
3
Supported byte orders:
0
1
Supported channel counts:
1
2
4
6
8

Steps to reproduce

I built the app with the following nix expression, against

{ pkgs ? import <nixpkgs> { } }:

pkgs.stdenv.mkDerivation {
  name = "performous-composer";
  src = pkgs.fetchFromGitHub {
    owner = "performous";
    repo = "composer";
    rev = "master";
    sha256 = "sha256-Xz0NlVBLTAHbt9d6MBMn8lqxAJz417B+aFunSGjX17U=";
  };
  buildInputs = with pkgs; [
    qt5.qtbase
    ffmpeg-full
    qt5.qtmultimedia
    libsForQt5.phonon
    libsForQt5.phonon-backend-gstreamer
    libsForQt5.libqtav
  ];
  nativeBuildInputs = with pkgs; [ cmake extra-cmake-modules ];
  dontWrapQtApps = true;
}

Additional context

No response

Baklap4 commented 1 year ago

I had the same while building from scratch again. I had to install

sudo apt install libqt5multimedia5-plugins

to get it to play audio

Let me know if it works then we'll close the issue :)

lumbric commented 9 months ago

I have the same issue - or a very similar one. I am using performous-composer 2.0 installed via apt on Pop!_OS 22.04 LTS.

When I press P to play the song, nothing happens, only the vertical line indicating the position starts shaking a bit, but it doesn't move forward. libqt5multimedia5-plugins is already installed.

This is the output on the terminal:

QAudioDevice info
Supported codecs:
"audio/pcm"
Supported sample rates:
8000
11025
22050
44100
48000
Supported sample sizes:
8
16
24
32
Supported sample types:
1
2
3
Supported byte orders:
0
1
Supported channel counts:
1
2
4
6
8
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
Tuupertunut commented 6 months ago

Same issue here. When pressing Play (P), the playback cursor shakes but does not move forward.

Composer: 2.0 from Ubuntu Jammy repository OS: Ubuntu 22.04 libQt: 5.15.3 from Ubuntu Jammy repository FFmpeg: 7:4.4.2 from Ubuntu Jammy repository Audio file I'm trying to play: Ogg Vorbis

Terminal output:

QAudioDevice info
Supported codecs:
"audio/pcm"
Supported sample rates:
8000
11025
22050
44100
48000
Supported sample sizes:
8
16
24
32
Supported sample types:
1
2
3
Supported byte orders:
0
1
Supported channel counts:
1
2
4
6
8
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints