OSDN Git Service

微調整 chapter_6
authoryamat0jp <yamat0jp@yahoo.co.jp>
Sun, 13 May 2018 04:42:41 +0000 (13:42 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Sun, 13 May 2018 04:42:41 +0000 (13:42 +0900)
wav_proj.dpr
wav_proj.dproj

index f65ca75..6753803 100644 (file)
@@ -15,7 +15,8 @@ var
   Buffer: array of ShortInt;
   size: integer;
 begin
-  size := (sp.endpos - sp.startpos) * sp.channels * sp.samplePerSec *
+  result := 0;
+  size := (sp.endpos - sp.startpos + 1) * sp.channels * sp.samplePerSec *
     sp.bitsPerSample div 8;
   SetLength(Buffer, size);
   try
index 0f66cf2..6f4f2c0 100644 (file)
         <DCC_RemoteDebug>true</DCC_RemoteDebug>
     </PropertyGroup>
     <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
-        <Debugger_RunParams>toujyo.wav effect.wav 1 2</Debugger_RunParams>
+        <Debugger_RunParams>toujyo.wav effect.wav 1 3</Debugger_RunParams>
         <DCC_RemoteDebug>false</DCC_RemoteDebug>
     </PropertyGroup>
     <PropertyGroup Condition="'$(Cfg_1_Win64)'!=''">