Author Topic: Play winamp with Autolisp  (Read 6150 times)

0 Members and 1 Guest are viewing this topic.

Adesu

  • Guest
Re: Play winamp with Autolisp
« Reply #15 on: February 07, 2007, 08:11:24 PM »
Hi Crank,
Your code is great,I like that,many thanks for your share.
Code: [Select]
; by Crank
(defun WinAmp (filename / shell bestand)
  (vl-load-com)
  (setq file "D:/YBI/General/Music/Dangdut/")
  (setq bestand (findfile (strcat file filename))) 
  (if
    bestand
    (progn
      (setq shell (vla-getinterfaceobject (vlax-get-acad-object) "Shell.Application"))
      (vlax-invoke-method shell 'Open bestand)
      (vlax-release-object shell)
      )
    (alert "MP3-file not found !")
    )
  (princ)
  )

(WinAmp "Sesungguhnya.mp3")



If the MP3 extension points to winamp, you can use the routine I posted here to. (change PDF to MP3 ;) )

JohnK

  • Administrator
  • Seagull
  • Posts: 10646
Re: Play winamp with Autolisp
« Reply #16 on: February 07, 2007, 08:42:47 PM »
Winamp whoops the Llamas butt, but like i stated before, if you use the command line version of Mplayer you can do tons more. Like for instance, build a play list from a dir of files (movies, mp3, etc.) and play them all in one shot! (the GUI version only sends commands to the command line version based on your input.)

Another thing is that Mplayer uses config files that are just plain text so you could append or alter those config files per your needs. ...You can also stream internet radio from Mplayer. ...You could theoretically, build your very own AutoLisp GUI version of a movie, music player. Now that would be cool!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Play winamp with Autolisp
« Reply #17 on: February 07, 2007, 10:52:51 PM »
Winamp whoops the Llamas butt,

Lots of things do .. but CadAMP whoops Mplayer and WinAMP ... no stinking GUI at all ... just pure raw code acessing windows APIs to play all kinds of audio files ... and it uses less than 1/10th of the resources of either of the other programs.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie