move manageaudio to c++
ClosedPublic

Authored by astippich on Mar 25 2018, 12:01 PM.

Details

Reviewers
mgallien
Group Reviewers
Elisa
Commits
R255:d41c7e060227: move manageaudio to c++
Summary

move the manageaudioplayer class to c++. with this, the main files responsible for playing audio are now in c++ only, with more to follow

Test Plan

audio still plays

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich requested review of this revision.Mar 25 2018, 12:01 PM
astippich created this revision.
astippich updated this revision to Diff 30494.Mar 25 2018, 12:06 PM
  • remove unrelated changes
astippich updated this revision to Diff 30495.Mar 25 2018, 12:09 PM
  • remove unrelated changes for real

forgot to mention, I think there are opportunities to clean up afterwards, but this revision just does the direct porting of qml to c++ including the signals/slots

Thanks.
I am reviewing it.
I have one question.

src/audiowrapper.h
117–127

What is the rationale behind adding the property value here ?

astippich added inline comments.Apr 15 2018, 9:34 AM
src/audiowrapper.h
117–127

This allows to connect the signals directly to the set functions of listening classes, and ensures that their properties are up to date. Adding the property value here is also what Qt is doing mostly, for example look at QMediaPlayer.

Sorry for the late review. I had somehow missed your reply.

During testing, I have got the following warnings:
qrc:/qml/ElisaMainWindow.qml:137: ReferenceError: volume is not defined
qrc:/qml/ElisaMainWindow.qml:138: ReferenceError: muted is not defined

astippich updated this revision to Diff 33567.May 3 2018, 6:44 PM
  • rebase on master

warnings should be gone now

mgallien accepted this revision.May 5 2018, 9:23 AM

Works fine

This revision is now accepted and ready to land.May 5 2018, 9:23 AM
This revision was automatically updated to reflect the committed changes.