QML Audio {} element blocks for ~200 ms on play()
Bug #1373088 reported by
Michael Zanetti
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Low
|
Unassigned | ||
media-hub (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
media-hub (Ubuntu RTM) |
Triaged
|
Low
|
Unassigned |
Bug Description
Trying to develop a game and using the QML Audio {} element to add sound effects. Calling play() on an Audio element however, seems to block for about 200 ms which causes the game to hang for that time.
This is the code in the app: http://
While it blocks I get this output from the app: http://
And this is the output of the media hub: http://
Changed in media-hub: | |
importance: | Undecided → High |
Changed in media-hub: | |
importance: | High → Medium |
Changed in media-hub (Ubuntu): | |
importance: | Undecided → Low |
Changed in media-hub (Ubuntu RTM): | |
importance: | Undecided → Low |
no longer affects: | media-hub |
Changed in media-hub (Ubuntu): | |
status: | New → Triaged |
Changed in media-hub (Ubuntu RTM): | |
status: | New → Triaged |
Changed in canonical-devices-system-image: | |
assignee: | nobody → John McAleely (john.mcaleely) |
tags: | added: kpi performance |
Changed in canonical-devices-system-image: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in canonical-devices-system-image: | |
assignee: | John McAleely (john.mcaleely) → nobody |
To post a comment you must log in.
Turns out there is a SoundEffect {} element in QML which doesn't suffer from this issue. I think the fact that Audio {} blocks the application for a bit is still an issue and should be fixed, but at least we know its ok to start loading the audio file on play() and it doesn't need to be realtime.