QML Audio {} element blocks for ~200 ms on play()

Bug #1373088 reported by Michael Zanetti
22
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://paste.ubuntu.com/8412989/

While it blocks I get this output from the app: http://paste.ubuntu.com/8412986/

And this is the output of the media hub: http://paste.ubuntu.com/8413007/

Jim Hodapp (jhodapp)
Changed in media-hub:
importance: Undecided → High
Revision history for this message
Michael Zanetti (mzanetti) wrote :

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.

Jim Hodapp (jhodapp)
Changed in media-hub:
importance: High → Medium
Jim Hodapp (jhodapp)
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
Jim Hodapp (jhodapp)
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.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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