diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-03 02:52:48 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-03 02:52:48 +0000 |
commit | dc1cf85b1ee9fea174c97293f23e8f384fce1fdc (patch) | |
tree | f86be2445a75ca99473f3d14a01651f3636acb7d /Game/Code/Classes/UMusic.pas | |
parent | ffe1eb670a46204831ca65a5d8d63da60c7cd6c4 (diff) | |
download | usdx-dc1cf85b1ee9fea174c97293f23e8f384fce1fdc.tar.gz usdx-dc1cf85b1ee9fea174c97293f23e8f384fce1fdc.tar.xz usdx-dc1cf85b1ee9fea174c97293f23e8f384fce1fdc.zip |
GetName added for AudioDecoder-Classes
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@897 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UMusic.pas')
-rw-r--r-- | Game/Code/Classes/UMusic.pas | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Game/Code/Classes/UMusic.pas b/Game/Code/Classes/UMusic.pas index 9b8cd606..44ae2a61 100644 --- a/Game/Code/Classes/UMusic.pas +++ b/Game/Code/Classes/UMusic.pas @@ -186,7 +186,7 @@ type type
IGenericPlayback = Interface
['{63A5EBC3-3F4D-4F23-8DFB-B5165FCE33DD}']
- function GetName: String;
+ function GetName: String;
function Open(Filename: string): boolean; // true if succeed
procedure Close;
@@ -239,6 +239,7 @@ type IGenericDecoder = Interface
['{557B0E9A-604D-47E4-B826-13769F3E10B7}']
+ function GetName(): String;
function InitializeDecoder(): boolean;
//function IsSupported(const Filename: string): boolean;
end;
@@ -257,7 +258,7 @@ type IAudioInput = Interface
['{A5C8DA92-2A0C-4AB2-849B-2F7448C6003A}']
- function GetName: String;
+ function GetName: String;
function InitializeRecord: boolean;
procedure CaptureStart;
@@ -311,8 +312,8 @@ implementation uses
sysutils,
UMain,
- UCommandLine;
-// uLog;
+ UCommandLine,
+ ULog;
var
singleton_VideoPlayback : IVideoPlayback = nil;
@@ -437,7 +438,7 @@ begin begin
while not AudioDecoder.InitializeDecoder do
begin
- //writeln('Initialize failed, Removing - '+ AudioDecoder.GetName );
+ Log.LogError('Initialize failed, Removing - '+ AudioDecoder.GetName);
AudioManager.remove( AudioDecoder );
singleton_AudioDecoder := nil;
AssignSingletonObjects();
@@ -448,7 +449,7 @@ begin begin
while not AudioPlayback.InitializePlayback do
begin
- writeln('Initialize failed, Removing - '+ AudioPlayback.GetName );
+ Log.LogError('Initialize failed, Removing - '+ AudioPlayback.GetName);
AudioManager.remove( AudioPlayback );
singleton_AudioPlayback := nil;
AssignSingletonObjects();
@@ -459,7 +460,7 @@ begin begin
while not AudioInput.InitializeRecord do
begin
- writeln('Initialize failed, Removing - '+ AudioInput.GetName );
+ Log.LogError('Initialize failed, Removing - '+ AudioInput.GetName);
AudioManager.remove( AudioInput );
singleton_AudioInput := nil;
AssignSingletonObjects();
|