Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129758

Audio playback does not work on linux/aarch64 (sailfish os)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • 6.7.2
    • Multimedia
    • None
    • Linux, wayland, sailfish, pulseaudio
    • Linux/Wayland

    Description

      I have built and packaged Qt 6.7.2 for SailfishOS, including QtMultiemedia with the ffmpeg and gstreamer backends.

      Generally, Qt/QML components are working, except for those in Multimedia (currently MediaPlayer and SoundEffect)

      I have not been able to get any sound output to work with a basic example using local files.  Media playback in qt 5.15 was known to work.

      With the gstreamer backend, I see errors like "internal data stream error", with the ffmpeg backend, I see QAudioSink: snd_pcm_hw_params: err = -22

      Pulseaudio version is 14.x and otherwise works

       

      Example qml:

      import QtQuick
      import QtQuick.Window 
      import QtQuick.Controls 
      import QtMultimedia as QTMM 
      
      Window 
      { 
         // Unique identifier to reference this object 
         id: root 
         width: 400 
         height: 400 
         visible: true 
         title: "mediatest" 
      
      QTMM.MediaDevices { 
         id: devices 
      } 
      
        QTMM.MediaPlayer { 
             id: player 
             audioOutput: QTMM.AudioOutput { 
                     device: devices.defaultAudioOutput 
             } 
             source: "/home/defaultuser/PinkPanther60.wav" 
      
             onErrorOccurred: { 
                msg.text = player.errorString 
             } 
         } 
      
      QTMM.SoundEffect { 
             id: playSound 
             source: "/home/defaultuser/PinkPanther60.wav" 
         } 
      
        Button { 
             x: 50 
             y: 60 
             onClicked: { 
                     console.log("click"); 
                     if (player.playing) { 
                             player.stop(); 
                     } else { 
                             player.play(); 
                     } 
             } 
      
        } 
      
      Button { 
         x: 150 
         y: 50 
         onClicked: { 
           playSound.play(); 
         } 
      } 
        Label { 
           id: msg 
           x: 50 
           y: 100 
        } 
      }
      
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            piggz Adam Pigg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes