tvlc.pp 457 B

123456789101112131415161718
  1. {$linklib pthread}
  2. program tvlc;
  3. uses cthreads, libvlc, math;
  4. Var
  5. Args: Array[0..3] of pchar;
  6. fhandle : pointer;
  7. begin
  8. // This is needed, or loading the VLC libraries will fail with a SIGFPE
  9. setexceptionmask([exInvalidOp, exDenormalized, exZeroDivide,
  10. exOverflow, exUnderflow, exPrecision]);
  11. LoadLibVLC('libvlc.so.5',False);
  12. args[0] := PAnsiChar('libvlc.so.5');
  13. args[2] := NIL;
  14. FHandle := libvlc_new(1, @args);
  15. end.