← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1384876] [NEW] Playing from named pipe does not work

 

Public bug reported:

There is no way to generate audio mathematically at runtime in QML and
play it directly through the AudioeEngine API. Instead, one must ship a
named pipe file in the click package, and use it as an audio sample
source. However, when using a named pipe as a sample, the AudioEngine
seems to read the data, but does not actually play it through the
speakers. The following QML code can be added to an application for
testing:

            Label {
                id: label
                objectName: "label"

                text: i18n.tr("Play Audio Pipe")
                AudioEngine {
                    id: audioengine
                    AudioSample {
                        name: "audiopipe"
                        source: "audiopipe"
                    }
                    Sound {
                        name: "audiopipe"
                        PlayVariation {
                            sample: "audiopipe"
                        }
                    }
                }
                MouseArea {
                    anchors.fill: parent
                    onPressed: {

                        audioengine.sounds["audiopipe"].play();
                    }
                }
            }

Running the following commands and then clicking the "Play Audio Pipe"
button should result in the sound being heard through the speakers, but
apparently only results in the data being read and unblocking the input
which is writing to the pipe.

mkfifo audiopipe
cat foo.wav > audiopipe

The file 'foo.wav' can be any valid wav audio file.

** Affects: qtubuntu-media (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtubuntu-media in Ubuntu.
https://bugs.launchpad.net/bugs/1384876

Title:
  Playing from named pipe does not work

Status in “qtubuntu-media” package in Ubuntu:
  New

Bug description:
  There is no way to generate audio mathematically at runtime in QML and
  play it directly through the AudioeEngine API. Instead, one must ship
  a named pipe file in the click package, and use it as an audio sample
  source. However, when using a named pipe as a sample, the AudioEngine
  seems to read the data, but does not actually play it through the
  speakers. The following QML code can be added to an application for
  testing:

              Label {
                  id: label
                  objectName: "label"

                  text: i18n.tr("Play Audio Pipe")
                  AudioEngine {
                      id: audioengine
                      AudioSample {
                          name: "audiopipe"
                          source: "audiopipe"
                      }
                      Sound {
                          name: "audiopipe"
                          PlayVariation {
                              sample: "audiopipe"
                          }
                      }
                  }
                  MouseArea {
                      anchors.fill: parent
                      onPressed: {

                          audioengine.sounds["audiopipe"].play();
                      }
                  }
              }

  Running the following commands and then clicking the "Play Audio Pipe"
  button should result in the sound being heard through the speakers,
  but apparently only results in the data being read and unblocking the
  input which is writing to the pipe.

  mkfifo audiopipe
  cat foo.wav > audiopipe

  The file 'foo.wav' can be any valid wav audio file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtubuntu-media/+bug/1384876/+subscriptions


Follow ups

References