Playing from named pipe does not work

Bug #1384876 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu-media (Ubuntu)
New
Wishlist
Unassigned
qtubuntu-media (Ubuntu RTM)
New
Wishlist
Unassigned

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.

Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
importance: Undecided → Wishlist
Changed in qtubuntu-media (Ubuntu RTM):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.