hedgewars/uSound.pas
changeset 3202 b470d7875f23
parent 3201 400c98815100
child 3418 8545f646a40d
equal deleted inserted replaced
3201:400c98815100 3202:b470d7875f23
    35 
    35 
    36 procedure InitSound;
    36 procedure InitSound;
    37 procedure ReleaseSound;
    37 procedure ReleaseSound;
    38 procedure SoundLoad;
    38 procedure SoundLoad;
    39 procedure PlaySound(snd: TSound);
    39 procedure PlaySound(snd: TSound);
       
    40 procedure PlaySound(snd: TSound; keepPlaying: boolean);
    40 procedure PlaySound(snd: TSound; voicepack: PVoicepack);
    41 procedure PlaySound(snd: TSound; voicepack: PVoicepack);
    41 procedure PlaySound(snd: TSound; voicepack: PVoicepack; keepPlaying: boolean);
    42 procedure PlaySound(snd: TSound; voicepack: PVoicepack; keepPlaying: boolean);
    42 function LoopSound(snd: TSound): LongInt;
    43 function LoopSound(snd: TSound): LongInt;
    43 function LoopSound(snd: TSound; voicepack: PVoicepack): LongInt;
    44 function LoopSound(snd: TSound; voicepack: PVoicepack): LongInt;
    44 procedure PlayMusic;
    45 procedure PlayMusic;
   164 procedure PlaySound(snd: TSound);
   165 procedure PlaySound(snd: TSound);
   165 begin
   166 begin
   166     PlaySound(snd, nil, false);
   167     PlaySound(snd, nil, false);
   167 end;
   168 end;
   168 
   169 
       
   170 procedure PlaySound(snd: TSound; keepPlaying: boolean);
       
   171 begin
       
   172     PlaySound(snd, nil, keepPlaying);
       
   173 end;
       
   174 
   169 procedure PlaySound(snd: TSound; voicepack: PVoicepack);
   175 procedure PlaySound(snd: TSound; voicepack: PVoicepack);
   170 begin
   176 begin
   171     PlaySound(snd, voicepack, false);
   177     PlaySound(snd, voicepack, false);
   172 end;
   178 end;
   173 
   179