aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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