Tema: trackBar
Ver Mensaje Individual
  #2  
Antiguo 24-11-2005
Avatar de rastafarey
rastafarey rastafarey is offline
Miembro
 
Registrado: nov 2003
Posts: 927
Reputación: 21
rastafarey Va por buen camino
Resp

Ve si econ esto te puedes guiar
Código Delphi [-]
procedure TfrmOther.btnPlaySoundClick(Sender: TObject);
var
  Bs: TStream;
  Ms: TMemoryStream;
begin
  Bs := dmMain.cdsBlob.CreateBlobStream(dmMain.cdsBlobBinary_Data, bmRead);
  try
    Ms := TMemoryStream.Create;
    try
      {Copy the WAV file to memory}
      Ms.CopyFrom(Bs, Bs.Size);

      {Play it but if we'll have an error, raise exception}
      Win32Check(PlaySound(Ms.Memory, 0, SND_SYNC or SND_MEMORY));
    finally
      Ms.Free
    end;
  finally
    Bs.Free
  end;
end;
__________________
Todo se puede, que no exista la tecnología aun, es otra cosa.
Responder Con Cita