** Changed in: qtubuntu-media (Ubuntu)
   Importance: Undecided => Wishlist

** Also affects: qtubuntu-media (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Changed in: qtubuntu-media (Ubuntu RTM)
   Importance: Undecided => Wishlist

-- 
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
Status in qtubuntu-media package in Ubuntu RTM:
  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

-- 
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to     : ubuntu-sdk-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to