Changeset 284 for CoolAudio/Systems


Ignore:
Timestamp:
Oct 11, 2011, 8:31:29 AM (13 years ago)
Author:
george
Message:
 
Location:
CoolAudio/Systems
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CoolAudio/Systems/UAudioSystem.pas

    r280 r284  
    179179  if AValue = FFileName then Exit;
    180180  FFileName := AValue;
     181  Close;
     182  Open;
    181183end;
    182184
  • CoolAudio/Systems/UAudioSystemMPlayer.pas

    r280 r284  
    256256  //MPOptions := '-af volume=' + IntToStr(IntTodB(Round(FVolume * 100), 100)) + ' ' + MPOptions;// -volume xx only supported with patched mplayer;
    257257
    258   FProcess.CommandLine := TAudioSystemMPlayer(AudioSystem).FPath + ' ' + MPOptions + ' "' + FFileName + '"';
     258  FProcess.CommandLine := TAudioSystemMPlayer(AudioSystem).FPath + ' ' + MPOptions + ' "' + UTF8Decode(FFileName) + '"';
    259259  FProcess.Options := FProcess.Options + [poUsePipes, poDefaultErrorMode, poStderrToOutPut, poNoConsole];
    260260  //InputBox('', '', FProcess.CommandLine);
  • CoolAudio/Systems/UAudioSystemWindows.pas

    r280 r284  
    226226  Parm.dwCallback := 0;
    227227  Parm.lpstrDeviceType := DeviceName[FDeviceType];
    228   Parm.lpstrElementName := PChar(FFileName);
     228  Parm.lpstrElementName := PChar(UTF8Decode(FFileName));
    229229
    230230  FFlags := 0;
Note: See TracChangeset for help on using the changeset viewer.