Skip to content

GameSound - Loop / repeat sound #1

@microvolution

Description

@microvolution
  1. portuguese (native language):
    Olá estou criando um jogo muito simples, mas, que a música precisa rodar em loop até chegar no game over.
    Infelizmente o TMediaPlayer nativo do Delphi 12.1 CE Firemonkey, não tem uma propriedade ou evento "isLooping". Mesmo usando um TTimer ou TThread, apesar de funcionar perfeitamente em Windows 32/64 (debug/release) e também em Android32 (debug/release) e Android64(debug), infelizmente em Android 64 (release), ou seja, .AAB para a loja, o loop não ocorre.

Testei o TAudioPlayer e tem muitos problemas.
Estou tentando testar o Bass.pas (libbass.so) e no Android não funciona.

No seu GameSound, como que se faz pra rodar a música em loop?

  1. english (google translate):
    Hello, I'm creating a very simple game, but the music needs to loop until the game is over.

Unfortunately, the native TMediaPlayer of Delphi 12.1 CE Firemonkey does not have an "isLooping" property or event. Even using a TTimer or TThread, although it works perfectly on Windows 32/64 (debug/release) and also on Android32 (debug/release) and Android64 (debug), unfortunately on Android 64 (release), that is, .AAB for the store, the loop does not occur.

I tested TAudioPlayer and it has many problems.

I'm trying to test Bass.pas (libbass.so) and it doesn't work on Android.

In your GameSound, how do you make the music loop?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions