[SailfishDevel] QML Audio/MediaPlayer - help needed...

"Lutor, Zoltán" zoltan.lutor at gmail.com
Sun Feb 18 09:50:36 UTC 2018


Hi,

I've originally used Audio but changed to MediaPlayer recently - hoping it works, but it was the same.

I dont use SoundEffect - mainly because audio clips are MP3 and there was some issue with using it back then (I cannot recall now).

@Lewis: do you mind if I share actual code example directly with you?

Or, is it appropriate to attach full QML files here on the list? They are not that big, 3-400 lines all together...

Thx,

Zoltan

On Saturday, February 17, 2018, Lewis Rockliffe wrote:
> Do you have an example of how you are playing your sounds?
> 
> Are you using MediaPlayer or SoundEffect? MediaPlayer will disturb system
> sound where as SoundEffect wont
> 
> On Fri, Feb 16, 2018 at 8:23 PM, Zoltán Lutor <zoltan.lutor at gmail.com>
> wrote:
> 
> > Hi,
> >
> > I have released my native game for Sailfish some time ago and it was quite
> > OK for all the devices but SailfishX... :(
> >
> > https://together.jolla.com/question/175875/new-native-
> > sailfish-game-in-harbour/
> >
> > Recently I got access to an XperiaX device and I was able identify root
> > cause for hang-ups: in-game audio.
> >
> > There is a pool of Audio components and in-game sound effects are assigned
> > to them on first-free-plays bases. It seems I use Audio/MediaPlayer QML
> > compontnts in wrong way but I cannot figure out what the real problem is...
> > :(
> >
> > Is there anyone who is willing to give me helping hand?
> >
> > Thx in advance,
> >
> > Zoltan
> >
> >
> > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> > www.avast.com
> > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
> > <#m_-6616834233982877594_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe at lists.
> > sailfishos.org
> >
>


More information about the Devel mailing list