From d68d03ca93b9a991cc49c32dc170862b472dfdee Mon Sep 17 00:00:00 2001 From: tobigun Date: Fri, 7 Mar 2008 20:31:37 +0000 Subject: - Fixed audio-playing in container (video) files. Now audio can be read directly from the video file and does not have to be extracted to a separate audio-file anymore (tested with vob, avi and flv. Note: With some versions of FFMPEG flv does not work correctly). - Added "pCodecCtx^.workaround_bugs := FF_BUG_AUTODETECT" to let FFMPEG automatically handle known bugs. This might be interesting for video-decoding too. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@936 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UMusic.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Game/Code/Classes/UMusic.pas') diff --git a/Game/Code/Classes/UMusic.pas b/Game/Code/Classes/UMusic.pas index 699cfa23..e2538c9d 100644 --- a/Game/Code/Classes/UMusic.pas +++ b/Game/Code/Classes/UMusic.pas @@ -89,10 +89,10 @@ type const FFTSize = 512; // size of FFT data (output: FFTSize/2 values) type - TFFTData = array[0..(FFTSize div 2-1)] of Single; + TFFTData = array[0..(FFTSize div 2)-1] of Single; type - TPCMStereoSample = array[0..1] of Smallint; + TPCMStereoSample = array[0..1] of SmallInt; TPCMData = array[0..511] of TPCMStereoSample; type -- cgit v1.2.3