summaryrefslogtreecommitdiff
path: root/example/file_info_example.adb
diff options
context:
space:
mode:
Diffstat (limited to 'example/file_info_example.adb')
-rw-r--r--example/file_info_example.adb20
1 files changed, 8 insertions, 12 deletions
diff --git a/example/file_info_example.adb b/example/file_info_example.adb
index 3971163..a147de6 100644
--- a/example/file_info_example.adb
+++ b/example/file_info_example.adb
@@ -47,18 +47,14 @@ begin
My_Sound_File.Open (ACom.Argument (1), Libsndfile.Read_Only, My_Info);
TIO.New_Line;
- TIO.Put_Line ("Open frame count:" &
- Libsndfile.Count_Type'Image (Libsndfile.Frames (My_Info)));
- TIO.Put_Line ("Open sample rate:" & Natural'Image (Libsndfile.Rate (My_Info)));
- TIO.Put_Line ("Open channel count:" & Natural'Image (Libsndfile.Channels (My_Info)));
- TIO.Put_Line ("Open major format: " &
- Libsndfile.Major_Format'Image (Libsndfile.Major (My_Info)));
- TIO.Put_Line ("Open minor format: " &
- Libsndfile.Minor_Format'Image (Libsndfile.Minor (My_Info)));
- TIO.Put_Line ("Open endianness: " &
- Libsndfile.Endianness'Image (Libsndfile.Endian (My_Info)));
- TIO.Put_Line ("Open section count:" & Natural'Image (Libsndfile.Sections (My_Info)));
- TIO.Put_Line ("Open seekable: " & Boolean'Image (Libsndfile.Seekable (My_Info)));
+ TIO.Put_Line ("Open frame count:" & Libsndfile.Count_Type'Image (My_Info.Frames));
+ TIO.Put_Line ("Open sample rate:" & Natural'Image (My_Info.Rate));
+ TIO.Put_Line ("Open channel count:" & Natural'Image (My_Info.Channels));
+ TIO.Put_Line ("Open major format: " & Libsndfile.Major_Format'Image (My_Info.Major));
+ TIO.Put_Line ("Open minor format: " & Libsndfile.Minor_Format'Image (My_Info.Minor));
+ TIO.Put_Line ("Open endianness: " & Libsndfile.Endianness'Image (My_Info.Endian));
+ TIO.Put_Line ("Open section count:" & Natural'Image (My_Info.Sections));
+ TIO.Put_Line ("Open seekable: " & Boolean'Image (My_Info.Seekable));
TIO.New_Line;
My_Sound_File.Close;