[SailfishDevel] Harbour QA process...

Martin Windolph martin at yoktobit.de
Fri Jan 10 22:35:03 UTC 2014


Hi,


I tried out Davids QtMultimedia workaround, but that doesn't help while I have found other issues with sound after digging a bit deeper, not only the volume problem with the Audio element. 
Btw. if I just remove the fading effect behaviour from my title music, the system volume isn't changed as the volume of all the Audio elements is never changed then and they also use the correct systems volume. 



But I decided to remove all audio in Morzyn for Sailfish this weekend until there is a QtMultimedia fix.


I've found the following additional issues (maybe they are all related, but I want to summarize the symptoms here):


1. Using the Audio element with mp3-Sounds, every time I play a sound when a creature attacks, the game lags a few frames, (doesn't happen on desktop and weaker Androids)
2. short sounds <12kb don't play at all, maybe because of:
3. I get a few warnings like this on app start:
[W] QGstreamerPlayerSession::pause:828 - GStreamer; Unable to pause - "file:///usr/share/harbour-morzyn/qml/sounds/meleemiss01.mp3"


I converted them to wav and the gstreamer warnings disappeared and I heard the sounds, but the lags were still there.


So now with my wav files I tried the "SoundEffect"-Element, which solved the lags...great!, but:


4. all SoundEffects run with 100% volume, no matter what system volume is set to (this works for “Audio” elements if you don’t change their own volume).


I hope this helps a bit to fix QtMultimedia.


br and have a nice weekend
Martin






Von: Reto Zingg
Gesendet: ‎Freitag‎, ‎10‎. ‎Januar‎ ‎2014 ‎15‎:‎06
An: Sailfish OS Developers





Hi,

On 10.01.2014 15:56, Martin Windolph wrote:
> Hi,
>
> oh, thanks for the information and sorry then for hijacking this thread.
> I thought that it was just an assumption that Audio was the reason.
>
> How can I find out if it's audio that is preventing suspend mode
> (emulator or device)?
>
> So Audio output seems to be really a problem in Sailfish OS. I'm using
> the QML "Audio" Element of QtMultimedia. Isn't it supported? I use Audio

as Robin wrote in 
https://together.jolla.com/question/421/qaudiooutput-isnt-integrated-with-system-volume-and-libresource-like-qmediaplayer/#post-id-6991 
this combination is an issue at the moment.

But David found a workaround for that at least for his application, 
which passed store QA.

checkout his main.qml from:

https://build.merproject.org/package/files?package=screenshot&project=home%3Albt%3Asailfishos

he does something like:

ffmpeg -ar 48000 -t 0.1 -f s16le -acodec pcm_s16le -ac 2 -i /dev/zero 
-acodec copy noSound.wav

ApplicationWindow {
...
         Audio {
             id: noSound
             source: "/usr/share/harbour-screenshot/noSound.wav"
         }
         // workaround a bug in QtMultimedia
         Component.onCompleted: noSound.play()
     }
}

br
Reto

> just for a few things:
> 1. Play title music
> 2. Play attack sounds of the creatures
>
> I temporary disabled 1. because of a known volume bug
> (https://together.jolla.com/question/421/qaudiooutput-isnt-integrated-with-system-volume-and-libresource-like-qmediaplayer/)
> by setting the source to null.
> 2. is still enabled (because I don't change their volume), but I do play
> sounds only if the application is active and I don't hear anything if I
> run it on my device.
>
> Maybe setting the source of 1. to null is the reason? But in my opinion,
> playing a null source should just result in a returning play() method...
>
> the source of the audio element:
> https://github.com/yoktobit/morzyn/blob/master/qml/MorzynPage.qml
>
> Thanks
> Martin
>
>  > Date: Fri, 10 Jan 2014 15:29:31 +0200
>  > From: reto.zingg at jolla.com
>  > To: devel at lists.sailfishos.org
>  > Subject: Re: [SailfishDevel] Harbour QA process...
>  >
>  > Hi,
>  >
>  > On 10.01.2014 11:01, Martin Windolph wrote:
>  > > Hi,
>  > >
>  > > another point for me is a possibility to contact the tester.
>  > > A prior rejection reason for an update of my game "Morzyn" was a
> missing
>  > > menu button (that was absolutely ok, because it leads to bad usability,
>  > > so I included one), my last rejection reason was battery consumption
>  > > when minimizing while the AI players do their move.
>  > > This is intended behaviour, but my game was rejected because it
> consumes
>  > > 3%-10% CPU while the AI players move (round-based) and the game is
>  > > minimized (measured by top). When the game waits for the players
> move, I
>  >
>  > According to my information the app got not rejected because of AI still
>  > running, but because the audio blocks the power management to go to
>  > suspend mode.
>  >
>  > And since there is no sound audible it might be that sound output is
>  > done in a not supported way. (But don't ask me how to do it correctly
>  > :-) But I'm sure here are other Sailors which can help you with that in
>  > your particular case).
>  >
>  > see also about how we test:
>  > https://lists.sailfishos.org/pipermail/devel/2014-January/002440.html
>  >
>  > br
>  > Reto
>  >
>  > > don't see it in "top". I love to finish my move, switch to my mail
>  > > folders or read facebook messages while the other 6 AI players make
>  > > their move.
>  > > Another point is that in future I want to include network gaming.
>  > > Therefore I also want it to run in background. The great thing of
>  > > Sailfish OS is that one can simply close an app like in the good old
>  > > desktop days, if you don't want it to consume power.
>  > > So now I have no idea how to react on this and just did nothing,
> because
>  > > I also have desktop and Android versions to take care of. But I'm not
>  > > happy that the few users of Morzyn can't profit from the fixes of the
>  > > update and have to deal with the version in store.
>  > >
>  > > Martin
>  > >
>  > > > Date: Fri, 10 Jan 2014 08:57:50 +0100
>  > > > From: alci at mecadu.org
>  > > > To: devel at lists.sailfishos.org
>  > > > Subject: [SailfishDevel] Harbour QA process...
>  > > >
>  > > > -----BEGIN PGP SIGNED MESSAGE-----
>  > > > Hash: SHA1
>  > > >
>  > > > Hi,
>  > > >
>  > > > currently, the Harbour QA process is quite frustrating, as problems
>  > > > are reported one after the other, with a delay of several days
>  > > > inbetween... reminds me of the old time cobol compilators!
>  > > >
>  > > > It would be cool if the efforts made by the developper to provide
> free
>  > > > native application were a bit more considered.
>  > > >
>  > > > Ok, I'm talking out of frustration, but I had my app rejected first
>  > > > because of naming conventions of the app itself (I didn't properly
>  > > > read the FAQ, but it is not stated either in the app submission page
>  > > > of Harbour), delay of 7 days, then because of rmp file naming
>  > > > convention (which I did not find clearly stated except in the
>  > > > rejection notification - 5 more days). Now I am waiting for next step
>  > > > (2 days for now...)
>  > > >
>  > > > I understand this is a lot of work, but what I suggest is :
>  > > > - - more controls and more information in the app submission page
>  > > > (testing the naming conventions of at least the files seems trivial)
>  > > > - - when doing QA, report all problems at once, not just the
> first one
>  > > > - - maybe provide a QA tool so that developpers could do this job and
>  > > > let jolla teams concentrate on real QA (power consumption, security
>  > > > checks, ...)
>  > > >
>  > > > Hope this does not sound too demanding...
>  > > >
>  > > > Best regards,
>  > > > Franck
>  > > > -----BEGIN PGP SIGNATURE-----
>  > > > Version: GnuPG v1.4.14 (GNU/Linux)
>  > > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>  > > >
>  > > > iQEcBAEBAgAGBQJSz6f+AAoJEGEvoAir78RoEOsH/3jBwaf6MTpi0tRqVQXZDvsU
>  > > > nTUoc/H2zFWOFVDoSJqc6FQCQcPue5Fvu/tuGe8zEF8HPeW5Et08dmpGP7wdXurP
>  > > > VJhaG8LOHCMj9AhgPLPkFKJKMCqKR8H0PmbvOaEhj+zua6AdpzlOz4MOPaxeQltz
>  > > > FUbXwnrGNZQ/KRoM1NPJM8g9SkUmkg+1cBBS1ThhJuVP+jANBit9BFJuYnvh8HzO
>  > > > y6ODX+jpn1348p89PWrt1/dDzRqLw62kccf5G6nyaBumjKNdzodfU7/+i2C6wHNG
>  > > > tTfS46ytuebzm/5SMG9yJN77jg1bsFZlHPjiKUp+vLaU99RBWVlFaybJPJf1QAY=
>  > > > =uJPj
>  > > > -----END PGP SIGNATURE-----
>  > > > _______________________________________________
>  > > > SailfishOS.org Devel mailing list
>  > >
>  > >
>  > > _______________________________________________
>  > > SailfishOS.org Devel mailing list
>  > >
>  >
>  > _______________________________________________
>  > SailfishOS.org Devel mailing list
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>

_______________________________________________
SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140110/589cede4/attachment.html>


More information about the Devel mailing list