Skip to content

Commit

Permalink
Update to ASFML 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrojo committed Jul 20, 2021
1 parent 60d9755 commit ea42f3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/ASFML
Submodule ASFML updated 450 files
11 changes: 5 additions & 6 deletions src/q_sound.adb
Expand Up @@ -11,7 +11,6 @@
-- External sound library
--
with Sf.Audio.Music;
with Sf.Audio.Types;

with Ada.Directories;
with Ada.Strings.Fixed;
Expand All @@ -22,9 +21,9 @@ with Q_Bingo;

package body Q_Sound is

use type Sf.Audio.Types.sfMusic_Ptr;
use type Sf.Audio.sfMusic_Ptr;

type T_Sound_Array is array (Q_Bingo.T_Number) of Sf.Audio.Types.sfMusic_Ptr;
type T_Sound_Array is array (Q_Bingo.T_Number) of Sf.Audio.sfMusic_Ptr;

V_Sounds : T_Sound_Array;

Expand Down Expand Up @@ -65,11 +64,11 @@ package body Q_Sound is
begin

if V_Sounds (V_Number) = null then
V_Sounds (V_Number) := Sf.Audio.Music.sfMusic_CreateFromFile
V_Sounds (V_Number) := Sf.Audio.Music.createFromFile
(F_Filename (V_Number));
end if;

Sf.Audio.Music.sfMusic_Play (V_Sounds (V_number));
Sf.Audio.Music.play (V_Sounds (V_number));

end P_Play_Number;

Expand All @@ -81,7 +80,7 @@ package body Q_Sound is
for V_Music of V_Sounds loop

if V_Music /= null then
Sf.Audio.Music.sfMusic_Destroy (V_Music);
Sf.Audio.Music.destroy (V_Music);
end if;

end loop;
Expand Down

0 comments on commit ea42f3c

Please sign in to comment.