[Gambas-user] MP3

Héctor Fernández López trorrr at ...397...
Sat May 29 03:01:06 CEST 2004


El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribió:
> On Tuesday 25 May 2004 14:21, Tim Hanschen wrote:
> > I read a bit docu... there is a remote interface for mpg321 available...
> > you can set mpg321 in an interactive mode. That means that you can type
> > in a command for stop, ff or rew, but I do not know how to send these
> > "keys" from gambas... I tried to write it to stdout, but that did not
> > work.. ;-(
> >
> > - Tim -
>
> Something like that:
>
> DIM hProcess AS Process
>
> EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess
>
> ...
>
> PRINT #hProcess, "The keys";
>
>
> PUBLIC SUB Process_Read()
>
>   DIM sRead AS String
>
>   READ #hProcess, sRead, -256
>
>   PRINT "mpg321 sent: "; sRead
>
> END
>
>
> Look at the examples that use external programs, like the video player that
> uses mplayer and send it commands.
>
> Regards,

Hi, there is some argument in mpg123 that allows to play a soundfile starting 
in the 34th second, as example?




More information about the User mailing list