Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   Devices in chinesisch?? Bass.dll (https://www.delphipraxis.net/178829-devices-chinesisch-bass-dll.html)

value is NULL 30. Jan 2014 10:53

Devices in chinesisch?? Bass.dll
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hi Community

ich verwende die BASS.dll um die Audio Devices auszuelesen.
Diese trage ich dann per Schleife in eine Combobox.

Folgender Code:

Delphi-Quellcode:
var
  deviceInfo: BASS_DEVICEINFO;

....

procedure TForm1.FormCreate(Sender: TObject);
var
  i : Integer;
begin
  // check the correct BASS was loaded
  if (HIWORD(BASS_GetVersion) <> BASSVERSION) then
  begin
    Showmessage('An incorrect version of BASS.DLL was loaded');
    Halt;
  end;
  if (not BASS_Init(-1, 44100, 0, 0, nil)) then
  begin
    Showmessage('Can''t initialize device');
    Halt;
  end;

  i:= 0;
  while (BASS_GetDeviceInfo(i, deviceInfo) <> false) do
  begin
    if deviceInfo.name <> 'No sound' then cbOutputDevices.Items.Add(PChar(deviceInfo.name));
    Inc(i);
  end;

end;
ich bekomme aber folgendes Ergebnis, siehe Screenshot.

Warum zum Teufel sieht das so aus ^^

Danke und LG

DeddyH 30. Jan 2014 11:01

AW: Devices in chinesisch?? Bass.dll
 
Vermutung:
http://www.un4seen.com/doc/#bass/BASS_DEVICEINFO.html
Zitat:

Depending on the BASS_CONFIG_UNICODE config setting, name and driver can be in ANSI or UTF-8 form on Windows. They are always in UTF-16 form ("WCHAR" rather than "char") on Windows CE, and UTF-8 on other platforms.

value is NULL 30. Jan 2014 11:15

AW: Devices in chinesisch?? Bass.dll
 
jop, das wars. Danke!


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz