|
Post by konaexpress on Mar 21, 2012 2:07:37 GMT 1
Dear konaexpress, This is what it looks like so far. vagos2108 may have added a few nice things already. With kind regards, vovchik Wow! That is pretty darn nifty. Is that running on a Mac? How small is the compiled file? -John
|
|
|
Post by vagos2108 on Mar 21, 2012 17:44:48 GMT 1
Dear konaexpress, The size of the compiled file is too small. It's about 260 KB and (as peter says) must run on each Unix/Linux/BSD platform, including MacOSX. First you have to compile the file in your platform. So you should give it a try With my regards, vagos2108
|
|
|
Post by vagos2108 on Mar 21, 2012 18:29:09 GMT 1
Dear vovchik, I read and compiled your latest mods (vovmods3.tar.gz) and we have some "mistakes". First the program looks great but the left time string is always "00:00:00:" I changed the last line of the find_clock procedure from... TEXT(full_time_clock, CONCAT$(hour$, ":", min$, ":", sec$))
to... TEXT(cur_time_clock, CONCAT$(hour$, ":", min$, ":", sec$))
I add some code in timer function for improving the "File Name" IF LEN(GRAB$(fname_text))>0 THEN TEXT(fname_text, REPLACE$(GRAB$(fname_text), "%20", " ")) ENDIF
... The attachment file is the file with above corrections I believe for the next version we can support AudioCD... With regards, vagos2108 Attachments:
|
|
|
Post by vovchik on Mar 21, 2012 19:41:05 GMT 1
Dear vagos2108, Very nice work. I didn't notice the "time" display problem after making that font adjustment On the subject of track info, I now have most of what is needed to get mp3 track info using libtag_c. The lib imports now work, although mplayer -identify can be used, too, and is probably better because it does not introduce other dependencies. The main problem with "mplayer -identify" is that it is pretty slow at getting info from network streams but it is very fast - almost instantaneous - with disk-based files, so it can be used for disk-based audio and video. Konaexpress asked about binary sizes. On a Linux 32-bit system, Vmedia Player weighs in at some 130k (using the compile line described in the source) and 29k UPX'ed. My experience with X, Gtk and BaCon on Mac OSX is that the binaries are about twice that size - still not too bad, but that is without using the compile line options I now generally use (thanks to a posting here by oldguy): bacon -o -s -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections vmedia_player.bac followed by UPX'ing: upx -9 vmedia_player With kind regards, vovchik
|
|
|
Post by konaexpress on Mar 21, 2012 22:56:43 GMT 1
OK, so do I just download the vodmod and use gcc to compile it? I am really new to this and I have never used a compiler before.
I know that Tiny Core Linux is looking for small and fast apps to use in its repos. Maybe this would help them out.
-John
|
|
|
Post by vagos2108 on Mar 23, 2012 11:03:00 GMT 1
Dear konaexpress, I am a new guy in BaCon same as you and I never use Tiny Core Linux (yet). Âeyond them is a Unix-based system. So... BaCon (BAsic CONverter) is a free BASIC to C converter for Unix-based systems. Here is an example... Just keep in mind that all BaCon files (I use bacon.bash, hug.bac and mypro.bac) must be in the same folder (any folder). Be sure that the file bacon.bash has executable permission. The file mypro.bac is my test program. here it is... INCLUDE "hug.bac" INIT
windows_form=WINDOW("Example",400,200)
DISPLAY
After your create your program (with any text editor) you have to convert and compile it. Just goto a terminal and when you enter the folder (with bacon.bash, hug.bac and mypro.bac) you run this command ./bacon.bash mypro.bac
When it finished, you have a new file (in the same folder) called mypro with executable permissions. You run it and see what happen ... You see a simple window. The above example requires - BASH 3.2 or higher (for bacon.bash) - GCC For more information just visited www.basic-converter.orgAbout the VMedia Player... first... it requires - BASH 3.2 or higher (for bacon.bash) - GCC - Mplayer - libvte With my regards, vagos2108
|
|
|
Post by vovchik on Mar 23, 2012 13:06:04 GMT 1
Dear konaexpress, I had to do the following on my Mac Mini: - Install Xcode (on your OSX install disk, if you are lucky)
- Install Xwindows (on your OSX install disk, if your are lucky)
- Download GTK from Macports or Fink (not from both)
- Download the bacon.bash and bacon gui sources, and hug.bac (and the gdk, gtk and other useful *.bac files)
- After setting permissions, compile bacon (with bacon.bash) and then use bacon proper to compile bacongui. Change permissions if you have to.
- Copy those binary programs (bacon and bacongui) into your executable path. /usr/bin is fine, but do this as root or with sudo.
You will later want to download a gtk mac icon theme and a mac-style gui theme, so that your Bacon apps (and other gtk apps) will look pretty much like native Mac. I use that technique also for Linux, which looks, on my system, like a Mac, since I do not want to see too many different interfaces on my computers. With kind regards, vovchik PS. Somebody here on the forum has also prepared a dmg for use on the Mac, although I haven't tried it. That is the simplest way to install, but you still need to set up your gtk gui theme and your incon theme so things will look OK.
|
|
|
Post by vagos2108 on Apr 6, 2012 19:26:48 GMT 1
Dear vovchik,
First of all... how are you?... I have a question... I give the following command in the terminal
mplayer cdda://1
I listen the first track in the audiocd with annoying interruptions. So I searched in the web and I found that
mplayer cdda://1 -cache 5000
This is the way that I have no interruptions. So I take the command and I run it through vte in VmediaPlayer.
runvte("mplayer","cdda://1","-cache 5000")
The result is that when I run it, vte gives me the following error
Unknow option on the command line: -cache 5000 Error parsing option on the command line: -cache 5000 Mplayer 1.0rc4-4.4.5 (c) 2000-2010 Mplayer Team
Please give me, if you know some, solution about that problem
Thanks in advance, vagos2108
|
|
|
Post by fragadelic on Apr 7, 2012 3:22:04 GMT 1
Try changing it to:
runvte("mplayer","cdda://1","-cache", "5000")
|
|
|
Post by vovchik on Apr 7, 2012 9:24:01 GMT 1
Dear vagos2108,
I got it to work like this:
IF REGEX(GRAB$(furl_text), ".pls|.m3u|.asx") THEN ' IF INSTR(GRAB$(furl_text), ".m3u") OR INSTR(GRAB$(furl_text), ".pls") THEN runvte("mplayer", "-cache", "512", "-title", GRAB$(furl_combo), "-playlist", \ GRAB$(furl_text), "-aspect", GRAB$(aspect_ratio_combo)) ELSE runvte("mplayer", "-cache", "512", "-title", GRAB$(furl_combo), \ GRAB$(furl_text), "-aspect", GRAB$(aspect_ratio_combo)) END IF
in an earlier version.
With kind regards, vovchik
|
|
|
Post by vagos2108 on Apr 7, 2012 11:25:18 GMT 1
Thanks both of you... I should find it but I'm too reckless. Thanks again vagos2108
|
|
|
Post by fragadelic on Apr 7, 2012 22:32:17 GMT 1
In libvte you need to pass each individual piece of the call as a separate string.
|
|
|
Post by vagos2108 on Apr 8, 2012 16:13:20 GMT 1
Yes I figure it out, thank you fragadelic
|
|
|
Post by vovchik on Apr 8, 2012 17:53:11 GMT 1
Dear guys,
I am wondering whether for vte
cdda://1
is not a main argument with parameters. For one, "cdda" might be taken my mplayer's parser as a device and the rest as a parameter. It is worth experimenting.
With kind regards, vovchik
|
|
|
Post by fragadelic on Apr 9, 2012 2:28:11 GMT 1
With vte, as long as you use each space separated option as an individual string to pass it should leave interpretation to the command.
|
|