aboutsummaryrefslogtreecommitdiff
path: root/src/libsndfile-commands.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsndfile-commands.adb')
-rw-r--r--src/libsndfile-commands.adb74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/libsndfile-commands.adb b/src/libsndfile-commands.adb
index 6bdd3cf..5338a7b 100644
--- a/src/libsndfile-commands.adb
+++ b/src/libsndfile-commands.adb
@@ -10,7 +10,7 @@ pragma Ada_2012;
with
Ada.Strings.Fixed,
- Interfaces.C.Strings;
+ Interfaces.C;
use type
@@ -301,7 +301,7 @@ package body Libsndfile.Commands is
(Info : in Format_Info)
return Major_Format
is
- Raw : Interfaces.Unsigned_32 :=
+ Raw : constant Interfaces.Unsigned_32 :=
Interfaces.Unsigned_32 (Info.C_Data.My_Format) and sf_format_typemask;
begin
return To_Major (Interfaces.C.int (Raw));
@@ -311,7 +311,7 @@ package body Libsndfile.Commands is
(Info : in Format_Info)
return Minor_Format
is
- Raw : Interfaces.Unsigned_32 :=
+ Raw : constant Interfaces.Unsigned_32 :=
Interfaces.Unsigned_32 (Info.C_Data.My_Format) and sf_format_submask;
begin
return To_Minor (Interfaces.C.int (Raw));
@@ -321,7 +321,7 @@ package body Libsndfile.Commands is
(Info : in Format_Info)
return Endianness
is
- Raw : Interfaces.Unsigned_32 :=
+ Raw : constant Interfaces.Unsigned_32 :=
Interfaces.Unsigned_32 (Info.C_Data.My_Format) and sf_format_endmask;
begin
return To_Endian (Interfaces.C.int (Raw));
@@ -574,26 +574,26 @@ package body Libsndfile.Commands is
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_norm_float,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Normed_Float;
procedure Set_Normed_Double
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_norm_double,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Normed_Double;
function Get_Normed_Float
@@ -640,34 +640,34 @@ package body Libsndfile.Commands is
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_scale_float_int_read,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Scale_Float_Integer_Read;
procedure Set_Scale_Integer_Float_Write
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_scale_int_float_write,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Scale_Integer_Float_Write;
function Get_Simple_Format_Count
return Natural
is
- Result, Code : Interfaces.C.int;
+ Result, Ignore : Interfaces.C.int;
begin
- Code := sf_command
+ Ignore := sf_command
(Null_Pointer,
sfc_get_simple_format_count,
Storage.To_Integer (Result'Address),
@@ -740,9 +740,9 @@ package body Libsndfile.Commands is
function Get_Format_Major_Count
return Natural
is
- Result, Code : Interfaces.C.int;
+ Result, Ignore : Interfaces.C.int;
begin
- Code := sf_command
+ Ignore := sf_command
(Null_Pointer,
sfc_get_format_major_count,
Storage.To_Integer (Result'Address),
@@ -775,9 +775,9 @@ package body Libsndfile.Commands is
function Get_Format_Subtype_Count
return Natural
is
- Result, Code : Interfaces.C.int;
+ Result, Ignore : Interfaces.C.int;
begin
- Code := sf_command
+ Ignore := sf_command
(Null_Pointer,
sfc_get_format_subtype_count,
Storage.To_Integer (Result'Address),
@@ -811,38 +811,38 @@ package body Libsndfile.Commands is
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_add_peak_chunk,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Add_Peak_Chunk;
procedure Update_Header_Now
(File : in Sound_File)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_update_header_now,
Null_Pointer,
0);
+ begin
+ null;
end Update_Header_Now;
procedure Set_Update_Header_Auto
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_update_header_auto,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Update_Header_Auto;
procedure File_Truncate
@@ -873,13 +873,13 @@ package body Libsndfile.Commands is
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_set_clipping,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end Set_Clipping;
function Get_Clipping
@@ -1438,13 +1438,13 @@ package body Libsndfile.Commands is
(File : in Sound_File;
Value : in Boolean)
is
- Code : Interfaces.C.int;
- begin
- Code := sf_command
+ Ignore : Interfaces.C.int := sf_command
(File.Ptr,
sfc_rf64_auto_downgrade,
Null_Pointer,
(if Value then sf_true else sf_false));
+ begin
+ null;
end RF64_Auto_Downgrade;
function Get_Original_Samplerate