From 59074886c5609310cbafcbae19b0a847a1c2bd0e Mon Sep 17 00:00:00 2001 From: jaybinks Date: Wed, 24 Oct 2007 12:05:05 +0000 Subject: comment this.. oops git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@524 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UVideo.pas | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Game/Code') 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 -- cgit v1.2.3