aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/media/UAudioDecoder_FFmpeg.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-30 07:42:31 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-30 07:42:31 +0000
commit547893cb14e680f9787c6c7e006681a2d081b35b (patch)
tree7ca9d508522d5407ae374e39fb0ebe0feba8b03a /mediaplugin/src/media/UAudioDecoder_FFmpeg.pas
parente5f7b9f18641141354f03e6a8281a347a2555927 (diff)
downloadusdx-547893cb14e680f9787c6c7e006681a2d081b35b.tar.gz
usdx-547893cb14e680f9787c6c7e006681a2d081b35b.tar.xz
usdx-547893cb14e680f9787c6c7e006681a2d081b35b.zip
renamed ffmpeg audio/decoder to something generic
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2696 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'mediaplugin/src/media/UAudioDecoder_FFmpeg.pas')
-rw-r--r--mediaplugin/src/media/UAudioDecoder_FFmpeg.pas48
1 files changed, 24 insertions, 24 deletions
diff --git a/mediaplugin/src/media/UAudioDecoder_FFmpeg.pas b/mediaplugin/src/media/UAudioDecoder_FFmpeg.pas
index 6047cdd6..96d1e9e9 100644
--- a/mediaplugin/src/media/UAudioDecoder_FFmpeg.pas
+++ b/mediaplugin/src/media/UAudioDecoder_FFmpeg.pas
@@ -50,7 +50,7 @@ uses
UPath;
type
- TAudioDecoder_FFmpeg = class(TInterfacedObject, IAudioDecoder)
+ TAudioDecoderPlugin = class(TInterfacedObject, IAudioDecoder)
private
fPluginInfo: PMediaPluginInfo;
public
@@ -74,7 +74,7 @@ uses
ULog;
type
- TFFmpegDecodeStream = class(TAudioDecodeStream)
+ TPluginAudioDecodeStream = class(TAudioDecodeStream)
private
fAudioDecoderInfo: PAudioDecoderInfo;
fFilename: IPath;
@@ -100,9 +100,9 @@ type
function ReadData(Buffer: PByteArray; BufferSize: integer): integer; override;
end;
-{ TFFmpegDecodeStream }
+{ TPluginAudioDecodeStream }
-constructor TFFmpegDecodeStream.Create(Info: PAudioDecoderInfo);
+constructor TPluginAudioDecodeStream.Create(Info: PAudioDecoderInfo);
begin
inherited Create();
fAudioDecoderInfo := Info;
@@ -112,13 +112,13 @@ end;
{*
* Frees the decode-stream data.
*}
-destructor TFFmpegDecodeStream.Destroy();
+destructor TPluginAudioDecodeStream.Destroy();
begin
Close();
inherited;
end;
-function TFFmpegDecodeStream.Open(const Filename: IPath): boolean;
+function TPluginAudioDecodeStream.Open(const Filename: IPath): boolean;
var
Info: TCAudioFormatInfo;
begin
@@ -142,7 +142,7 @@ begin
Result := true;
end;
-procedure TFFmpegDecodeStream.Close();
+procedure TPluginAudioDecodeStream.Close();
begin
Self.fFilename := PATH_NONE;
if (fStream <> nil) then
@@ -152,84 +152,84 @@ begin
end;
end;
-function TFFmpegDecodeStream.GetLength(): real;
+function TPluginAudioDecodeStream.GetLength(): real;
begin
Result := fAudioDecoderInfo.getLength(fStream);
end;
-function TFFmpegDecodeStream.GetAudioFormatInfo(): TAudioFormatInfo;
+function TPluginAudioDecodeStream.GetAudioFormatInfo(): TAudioFormatInfo;
begin
Result := fFormatInfo;
end;
-function TFFmpegDecodeStream.IsEOF(): boolean;
+function TPluginAudioDecodeStream.IsEOF(): boolean;
begin
Result := fAudioDecoderInfo.isEOF(fStream);
end;
-function TFFmpegDecodeStream.IsError(): boolean;
+function TPluginAudioDecodeStream.IsError(): boolean;
begin
Result := fAudioDecoderInfo.isError(fStream);
end;
-function TFFmpegDecodeStream.GetPosition(): real;
+function TPluginAudioDecodeStream.GetPosition(): real;
begin
Result := fAudioDecoderInfo.getPosition(fStream);
end;
-procedure TFFmpegDecodeStream.SetPosition(Time: real);
+procedure TPluginAudioDecodeStream.SetPosition(Time: real);
begin
fAudioDecoderInfo.setPosition(fStream, Time);
end;
-function TFFmpegDecodeStream.GetLoop(): boolean;
+function TPluginAudioDecodeStream.GetLoop(): boolean;
begin
Result := fAudioDecoderInfo.getLoop(fStream);
end;
-procedure TFFmpegDecodeStream.SetLoop(Enabled: boolean);
+procedure TPluginAudioDecodeStream.SetLoop(Enabled: boolean);
begin
fAudioDecoderInfo.setLoop(fStream, Enabled);
end;
-function TFFmpegDecodeStream.ReadData(Buffer: PByteArray; BufferSize: integer): integer;
+function TPluginAudioDecodeStream.ReadData(Buffer: PByteArray; BufferSize: integer): integer;
begin
Result := fAudioDecoderInfo.readData(fStream, PCUint8(Buffer), BufferSize);
end;
-{ TAudioDecoder_FFmpeg }
+{ TAudioDecoderPlugin }
-constructor TAudioDecoder_FFmpeg.Create(Info: PMediaPluginInfo);
+constructor TAudioDecoderPlugin.Create(Info: PMediaPluginInfo);
begin
inherited Create();
fPluginInfo := Info;
end;
-function TAudioDecoder_FFmpeg.GetName: String;
+function TAudioDecoderPlugin.GetName: String;
begin
Result := 'Plugin:AudioDecoder:' + fPluginInfo.name;
end;
-function TAudioDecoder_FFmpeg.InitializeDecoder: boolean;
+function TAudioDecoderPlugin.InitializeDecoder: boolean;
begin
//fPluginInfo.initialize();
Result := true;
end;
-function TAudioDecoder_FFmpeg.FinalizeDecoder(): boolean;
+function TAudioDecoderPlugin.FinalizeDecoder(): boolean;
begin
//fPluginInfo.finalize();
Result := true;
end;
-function TAudioDecoder_FFmpeg.Open(const Filename: IPath): TAudioDecodeStream;
+function TAudioDecoderPlugin.Open(const Filename: IPath): TAudioDecodeStream;
var
- Stream: TFFmpegDecodeStream;
+ Stream: TPluginAudioDecodeStream;
begin
Result := nil;
- Stream := TFFmpegDecodeStream.Create(fPluginInfo.audioDecoder);
+ Stream := TPluginAudioDecodeStream.Create(fPluginInfo.audioDecoder);
if (not Stream.Open(Filename)) then
begin
Stream.Free;