Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-01

Re: fpc-pascal Digest, Vol 163, Issue 11

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ingemar Ragnemalm

Thanks! The limitations in the sound playing are straight from JavaScript's Audio API. I think I know how to loop a sound, although the online advice are pretty confusing. For playing a sound multiple times, it seems I need to load it multiple times! Not very elegant but it can be done.

The last point, is that when turning twice very fast?

/Ingemar

Den 2018-01-07 kl. 16:38, skrev Sandro Cumerlato:

Show quoted text 10 lines
Awesame work!:-) areas for improvement: in santa2 - loop Jingle Bells.mp3 for an infinite pleasure;-) - play boing.mp3 multiple times in case of multiple keyboard hits. in snake: - avoid this:https://imagebin.ca/v/3nOH4webezqH
Sandro Cumerlato
to Ingemar Ragnemalm

I've done it, let's call it "santa3", it's amazing! :-) [you've made my day]

For the last point: yes!

Sandro

p.s.: look at the attachment.

Ingemar Ragnemalm wrote 28 lines
Thanks! The limitations in the sound playing are straight from JavaScript's Audio API. I think I know how to loop a sound, although the online advice are pretty confusing. For playing a sound multiple times, it seems I need to load it multiple times! Not very elegant but it can be done. The last point, is that when turning twice very fast? /Ingemar Den 2018-01-07 kl. 16:38, skrev Sandro Cumerlato: > Awesame work!:-) > > areas for improvement: > > in santa2 > - loop Jingle Bells.mp3 for an infinite pleasure;-) > - play boing.mp3 multiple times in case of multiple keyboard hits. > > in snake: > - avoid this:https://imagebin.ca/v/3nOH4webezqH > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal