aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-24 12:05:05 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-24 12:05:05 +0000
commit59074886c5609310cbafcbae19b0a847a1c2bd0e (patch)
tree080623dc2dea4cddbf3ccdabc5ca2e21a9e3775d
parent892b8dc2c37cf416827974dc8e4e4e3e6554ac3f (diff)
downloadusdx-59074886c5609310cbafcbae19b0a847a1c2bd0e.tar.gz
usdx-59074886c5609310cbafcbae19b0a847a1c2bd0e.tar.xz
usdx-59074886c5609310cbafcbae19b0a847a1c2bd0e.zip
comment this.. oops
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@524 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UVideo.pas13
1 files changed, 8 insertions, 5 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index 6e16a7a3..05496fbc 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -83,7 +83,7 @@ type
WantedAudioCodecContext,
AudioCodecContext : PSDL_AudioSpec;
- aCodecCtx : PAVCodecContext;
+ aCodecCtx : PAVCodecContext;
function find_stream_ids( const aFormatCtx : PAVFormatContext; Out aFirstVideoStream, aFirstAudioStream : integer ): boolean;
@@ -471,16 +471,19 @@ begin
end;
aCodecCtx := VideoFormatContext.streams[ AudioStreamIndex ].codec;
-(*
+ if aCodecCtx <> nil then
+ begin
+
WantedAudioCodecContext.freq := aCodecCtx^.sample_rate;
- WantedAudioCodecContext.format := AUDIO_S16SYS;
- WantedAudioCodecContext.channels := aCodecCtx^.channels;
- WantedAudioCodecContext.silence := 0;
+// WantedAudioCodecContext.format := AUDIO_S16SYS;
+// WantedAudioCodecContext.channels := aCodecCtx^.channels;
+(* WantedAudioCodecContext.silence := 0;
WantedAudioCodecContext.samples := 1024;//SDL_AUDIO_BUFFER_SIZE;
// WantedAudioCodecContext.callback := audio_callback;
WantedAudioCodecContext.userdata := aCodecCtx;
*)
+ end;
(*
if(SDL_OpenAudio(WantedAudioCodecContext, AudioCodecContext) < 0) then
begin