text stringlengths 0 234 |
|---|
end if; |
Samples := 0; |
PCM_DUT := (others => 0.0); |
loop |
Samples := Samples + 1; |
-- Put ("[" & Integer'Image (Samples) & "]"); |
declare |
PCM_Buf : constant PCM_Buffer := Get (WF_In); |
begin |
PCM_DUT (Samples) := PCM_Buf (PCM_Buf'First); |
Function Definition: procedure Display_PCM_Vals |
Function Body: (PCM_Vals : PCM_Buffer; |
Header : String); |
procedure Write_PCM_Vals |
(WF : in out Wavefile; |
PCM_Vals : PCM_Buffer); |
function PCM_Data_Is_OK |
(PCM_Ref, PCM_DUT : PCM_Buffer) return Boolean; |
function PCM_Data_Is_OK |
(Test_Bits : Wav_Bit_Depth; |
PCM_DUT : PCM_Buffer) return Boolean; |
function Wav_IO_OK_For_Audio_Resolution |
(Test_Bits : Wav_Bit_Depth; |
Wav_Test_File_Name : String) return Boolean; |
procedure Display_Info |
(WF : Wavefile; |
Header : String); |
procedure Write_Wavefile |
(Wav_File_Name : String; |
Test_Bits : Wav_Bit_Depth); |
procedure Read_Wavefile |
(Wav_File_Name : String; |
PCM_DUT : out PCM_Buffer); |
function Image (B : Wav_Bit_Depth) return String renames |
Audio.RIFF.Wav.Formats.Report.Image; |
---------------------- |
-- Display_PCM_Vals -- |
---------------------- |
procedure Display_PCM_Vals (PCM_Vals : PCM_Buffer; |
Header : String) |
is |
Display_Integer_Value : constant Boolean := True; |
begin |
Put_Line (Header); |
for Sample_Count in PCM_Vals'Range loop |
declare |
PCM_Integer : Integer_64 |
with |
Address => PCM_Vals (Sample_Count)'Address, |
Size => 64; |
begin |
Put (" Val: "); |
PCM_Sample_Text_IO.Put (Item => PCM_Vals (Sample_Count), |
Fore => 5, |
Aft => 60, |
Exp => 5); |
if Display_Integer_Value then |
Put (" - "); |
Fixed_64_PCM_As_Integer_Text_IO.Put |
(PCM_Integer, Base => 2, Width => 68); |
end if; |
New_Line; |
Function Definition: procedure Display_Info |
Function Body: (WF : Wavefile; |
Header : String) |
is |
Separator : constant String |
:= "==========================================================="; |
begin |
Put_Line (Separator); |
Put_Line (Header); |
Display_Info (WF); |
Put_Line (Separator); |
end Display_Info; |
-------------------- |
-- Write_Wavefile -- |
-------------------- |
procedure Write_Wavefile |
(Wav_File_Name : String; |
Test_Bits : Wav_Bit_Depth) |
is |
WF_Out : Wavefile; |
Wave_Format : Wave_Format_Extensible; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.