aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-13 16:23:14 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-13 16:23:14 +0000
commitf1566a45ac7de81f31a1b419d88e1742089ae56d (patch)
tree889408caab4da0325663305c2ef9ac4b7bc47c9c /src/base
parent189d127196a855ca6a79793ba0bbe548bd415049 (diff)
downloadusdx-f1566a45ac7de81f31a1b419d88e1742089ae56d.tar.gz
usdx-f1566a45ac7de81f31a1b419d88e1742089ae56d.tar.xz
usdx-f1566a45ac7de81f31a1b419d88e1742089ae56d.zip
- save input device names as UTF8Strings
- device names of basslib are assumed to be in local encoding - device names of portaudio are assumed to be in utf-8 fixes: display of device names w/ special characters w/ basslib ('รค' for me) to-do: proof encoding of device names for basslib and portaudio git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2234 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r--src/base/URecord.pas6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/URecord.pas b/src/base/URecord.pas
index a3f665e5..c4612adb 100644
--- a/src/base/URecord.pas
+++ b/src/base/URecord.pas
@@ -102,7 +102,7 @@ type
TAudioInputDevice = class
public
CfgIndex: integer; // index of this device in Ini.InputDeviceConfig
- Name: string; // soundcard name
+ Name: UTF8String; // soundcard name
Source: array of TAudioInputSource; // soundcard input-sources
SourceRestore: integer; // source-index that will be selected after capturing (-1: not detected)
MicSource: integer; // source-index of mic (-1: none detected)
@@ -143,7 +143,7 @@ type
private
Started: boolean;
protected
- function UnifyDeviceName(const name: string; deviceIndex: integer): string;
+ function UnifyDeviceName(const name: UTF8String; deviceIndex: integer): UTF8String;
public
function GetName: String; virtual; abstract;
function InitializeRecord: boolean; virtual; abstract;
@@ -741,7 +741,7 @@ begin
Started := false;
end;
-function TAudioInputBase.UnifyDeviceName(const name: string; deviceIndex: integer): string;
+function TAudioInputBase.UnifyDeviceName(const name: UTF8String; deviceIndex: integer): UTF8String;
var
count: integer; // count of devices with this name