diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/sine_block.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/sine_block.adb b/example/sine_block.adb index 5ff5be5..b28b7cd 100644 --- a/example/sine_block.adb +++ b/example/sine_block.adb @@ -27,7 +27,8 @@ procedure Sine_Block is Channels : constant Natural := 2; Per_Buffer : constant Pstm.Frame_Amount := 1024; - Sample_Array : Pstm.Float_32_Array (1 .. Natural (Per_Buffer) * Channels) := (others => 0.0); + Sample_Array : aliased Pstm.Float_32_Array (1 .. Natural (Per_Buffer) * Channels) := + (others => 0.0); Sample_Buffer : Pstm.Buffer := Pstm.Wrap (Sample_Array, Per_Buffer, Channels); type Table_Index is mod 200; |