audio_play_sound priority?

Discussion in 'Programming' started by Tales, Aug 13, 2019 at 12:16 PM.

  1. Tales

    Tales Member

    Joined:
    Apr 11, 2018
    Posts:
    44
    Hello

    I dont understand how its really works in fact. I see "Lower priority sounds will be stopped in favour of higher priority sounds" (I dont speak eng very well so I missunderstand something).
    But it seems to explain if I have 2 sound like that

    audio_play_sound(sd_impactsanglant01,50,0);
    audio_play_sound(sd_ecrasementgore,51,0)

    launching at same time, the first wont be played?

    My problem is, I have a lot of sound in the game (and no problem heard but one, sometimes, thoses 2 are not played (there is other sounds with other priority) but 1 / 10 I guess, the 2 sounds are not played. I dont know why.

    (sorry for my english)
     
  2. ThePropagation

    ThePropagation Member

    Joined:
    May 16, 2017
    Posts:
    114
    if you put them both right next to each other in the code one won't play every time because it will immediately only play the one with more priority
     
  3. Bearman_18

    Bearman_18 Member

    Joined:
    Jan 24, 2018
    Posts:
    163
    @Tales never apologise for knowing a second language.
     
  4. Tales

    Tales Member

    Joined:
    Apr 11, 2018
    Posts:
    44
    Ok I stop to launch 2 sounds at same time.. there is really a problem...

    haha ok Bearman ^^
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice