procedure TForm1.Button1Click(Sender: TObject); var info: BASS_DEVICEINFO; i: Integer; begin i := 1; while BASS_GetDeviceInfo(i, info) do begin ListBox1.Items.Add(string(info.name)); Inc(i); end; end;
I dont know about this library but you can read tge help here
http://www.un4seen.com/ (forum )
http://www.un4seen.com/doc/#bass
http://www.un4seen.com/doc/#bass/BASS_GetDeviceInfo.html
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
http://www.un4seen.com/forum/?topic=18720.msg131159;topicseen#msg131159
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
@nickmma 多谢,但是我用 procedure TForm1.Button1Click(Sender: TObject); var info: BASS_DEVICEINFO; i: Integer; begin i := 1; while BASS_GetDeviceInfo(i, info) do begin ListBox1.Items.Add(string(info.name)); Inc(i); end; end;
@zhouying (zy) procedure TForm1.Button1Click(Sender: TObject); var info: BASS_DEVICEINFO; i: Integer; begin i := 1; while BASS_GetDeviceInfo(i, info) do begin ListBox1.Items.Add(inttostr(i) + ' ' + string(info.name)); Inc(i); end; end;
procedure TForm1.Button1Click(Sender: TObject); begin //X为你想要输出的设备 if not BASS_Init(x, 44100, 0, 0, nil) then ShowMessage('初始化错误'); end;
procedure TForm1.Button1Click(Sender: TObject); var info: BASS_DEVICEINFO; i: Integer; begin i := 1; while BASS_GetDeviceInfo(i, info) do begin ListBox1.Items.Add(string(info.name)); Inc(i); end; end;