Recent

Author Topic: SoundPool issue  (Read 3011 times)

Lulu

  • Full Member
  • ***
  • Posts: 230
SoundPool issue
« on: October 08, 2020, 04:27:43 pm »
I'm a beginner on Android and LAMW allow me to play with my mobile ! Thanks You !

I tested the AppSoundPoolDemo and all is right with the wav files provided with the demo.

I replaced the wav files with some of mine, and I noticed this:
-with short wav file, like those provided with the demo, all the sound is played.
-with bigger files, only the few first seconds are played then looped from the start. (It seams like the audio buffer is not updated with new data...?)
I tryed to change the priority level but without sucess.

Anyone else noticed this ?

Thanks you!

EDIT : I just read about SoundPool on the net, and this library is done for short sound...! So it is normal that big file are truncated !
I'm sorry  :-[ :-[ :-[
« Last Edit: October 08, 2020, 05:03:39 pm by Lulu »
wishing you a nice life

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: SoundPool issue
« Reply #1 on: October 08, 2020, 05:09:42 pm »
I think that somebody else has recently asked something very similar, so don't apologise since you might have answered his question as well.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Lulu

  • Full Member
  • ***
  • Posts: 230
Re: SoundPool issue
« Reply #2 on: October 08, 2020, 05:41:22 pm »
it was me !  :D
wishing you a nice life

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: SoundPool issue
« Reply #3 on: October 08, 2020, 05:46:12 pm »
See? You can talk to yourself and nobody around here says you're crazy! :-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dsiders

  • Hero Member
  • *****
  • Posts: 1084
Re: SoundPool issue
« Reply #4 on: October 08, 2020, 05:52:28 pm »
See? You can talk to yourself and nobody around here says you're crazy! :-)
MarkMLl

Yes, but you never know what they're thinking... ;)
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: SoundPool issue
« Reply #5 on: October 08, 2020, 07:43:15 pm »
Hi!

Then a workaround is easy:

Cut your favourite song in little peaces ....

Winni


 

TinyPortal © 2005-2018