License from €75
DE EN FR ES IT CZ

playing music with startSound

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 13 years ago
    I'd like to implement a playlist player für background music. As I unterstand it there are three channels for sound: music, effects and speech. How can a start an new song with StartSound in the music channel?
    How many sounds can I play in parallel? Is there an event that gets triggered, when a sound has stopped? (so that i can start the next song)
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 13 years ago
    You can't control which channel the sound takes, it will always be in the sound channel.
    You can query the offset of the sound to see if it's through:
    local offset = getSoundProperty(id, "offset")
    If the offset is -1, the sound is through. Many cards handle up to 256 sources (channels, stereo means 2 channels), some cards even 1024 sources, but other cards can only do 16. You often are better off using not so much audio channels, as it will be hard on the cpu after some channels.
  4. · 13 years ago
  5. · 13 years ago
    Cool, thx! Ok, so there is more than one sound possible per channel. I just wanted to make sure that I dont block every other sound with my music.But what is the point of having a music "channel" when I can't play music on it? Hmm, I'll probably just read the mixer setting for the music "channel" and apply it to my player in the main loop. The read offset trick is pretty cool. Someone should update the documentation with it - and probably add your script to the documentation, too. Generally someone should take the answers from the forum an add them to the docs... ;-)

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?