From abidoo.too at ...4... Wed Feb 1 22:12:41 2006 From: abidoo.too at ...4... (fabien bodard) Date: Wed, 01 Feb 2006 22:12:41 +0100 Subject: [Gambas-devel] Bug in auto create class Message-ID: <1138828361.9499.3.camel@...326...> Hi Benoit, This is a new bug in gambas :) it raise in auto creating system in class i join an example and the gbd result. regards, Fabien Bodard fabien at ...422...:~/Documents/Projects/testcreate$ gbc2 -agt OK fabien at ...422...:~/Documents/Projects/testcreate$ gdb gbx2 GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx2 -p Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0x0805f6d5 in OBJECT_create (object=0x808fa40, class=0x808f9c8, name=0x0, parent=0x0, nparam=0) at gbx_object.c:311 #2 0x0805225d in CLASS_auto_create (class=0x808f9c8, nparam=0) at gbx_class.c:899 #3 0x0804e2c6 in EXEC_auto_create (class=0x808f9c8) at gbx_exec.c:1487 #4 0x0804e320 in EXEC_spec (special=134805960, class=0x808f9c8, object=0x0, nparam=134805960, drop=0 '\0') at gbx_exec.c:1203 #5 0x0804ef85 in EXEC_push_array () at gbx_exec_push.c:443 #6 0x0804f686 in EXEC_loop () at gbx_exec_loop.c:533 #7 0x0804dd33 in EXEC_function_real (keep_ret_value=0 '\0') at gbx_exec.c:645 #8 0x0805ec2d in main (argc=1, argv=0xbfebd6d4) at gbx.c:294 (gdb) Quit -------------- next part -------------- A non-text attachment was scrubbed... Name: testcreate-0.0.1.tar.gz Type: application/x-compressed-tar Size: 526 bytes Desc: not available URL: From bdragon at ...185... Wed Feb 1 23:00:55 2006 From: bdragon at ...185... (Brandon Bergren) Date: Wed, 1 Feb 2006 16:00:55 -0600 (Central Standard Time) Subject: [Gambas-devel] Bug in auto create class In-Reply-To: <1138828361.9499.3.camel@...326...> References: <1138828361.9499.3.camel@...326...> Message-ID: On Wed, 1 Feb 2006, fabien bodard wrote: > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx2 -p As an aside here regarding GDB: Did you know that you can supply arguments to a program like this? "gdb --args gbx2 -p" It's saved me typing many times :D --Brandon From gambasfr at ...4... Thu Feb 2 00:27:02 2006 From: gambasfr at ...4... (fabien bodard) Date: Thu, 02 Feb 2006 00:27:02 +0100 Subject: [Gambas-devel] Bug in auto create class In-Reply-To: References: <1138828361.9499.3.camel@...326...> Message-ID: <1138836422.13858.0.camel@...326...> Le mercredi 01 f?vrier 2006 ? 16:00 -0600, Brandon Bergren a ?crit : > > On Wed, 1 Feb 2006, fabien bodard wrote: > > > (gdb) set args -p > > (gdb) run > > Starting program: /usr/local/bin/gbx2 -p > > As an aside here regarding GDB: > > Did you know that you can supply arguments to a program like this? > > "gdb --args gbx2 -p" > > It's saved me typing many times :D > regar > --Brandon thank you :D regards, fabien Bodard > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas at ...1... Thu Feb 2 18:37:32 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 2 Feb 2006 18:37:32 +0100 Subject: [Gambas-devel] Bug in auto create class In-Reply-To: <1138828361.9499.3.camel@...326...> References: <1138828361.9499.3.camel@...326...> Message-ID: <200602021837.32582.gambas@...1...> On Wednesday 01 February 2006 22:12, fabien bodard wrote: > Hi Benoit, > > This is a new bug in gambas :) > > it raise in auto creating system in class > > i join an example and the gbd result. > > regards, > Fabien Bodard > Here is a patch that raises an error instead of crashing. Actually, as your class has no dynamic variable, it is not instanciable. Maybe I should make classes instanciable, even if they do not have any dynamic variable. It will avoid tests in the interpreter. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_object.c Type: text/x-csrc Size: 7903 bytes Desc: not available URL: From gambas at ...1... Fri Feb 3 23:03:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 3 Feb 2006 23:03:39 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.24 Message-ID: <200602032303.40809.gambas@...1...> Hi everybody, Here a new release of the development version. The main changes in this version are: * Things now should work correctly on a big-endian CPU. Not tested! * From a Nigel Gerrard's idea, there is a new instruction, PIPE, for using named pipes. * Two new functions, Lsl() and Lsr(), for doing logical shifts. * The position of the current line in the debugger should be always accurate now. * The Drag & Drop was fixed in the ListView, TreeView, ScrollView, ColumnView and IconView controls. * A new property, Window.Controls, for returning a collection of all controls located in a window. * The sqlite driver now automatically switch between sqlite2 and sqlite3. And many other bug fixes of course. Don't forget to read the changelog... WARNING! The bytecode has changed, and so you have to recompile your projects. The syntax of the new PIPE instruction is: DIM hPipe AS File hPipe = PIPE FOR [ READ | WRITE ] [ WATCH ] is the path name of the named pipe. If the named pipe does not exist, it is automatically created. Enjoy it! -- Benoit Minisini From kazutaka at ...426... Mon Feb 6 14:50:53 2006 From: kazutaka at ...426... (HARADA Kazutaka) Date: Mon, 6 Feb 2006 22:50:53 +0900 Subject: [Gambas-devel] Form does not move. Message-ID: <20060206225053.444cd5e5.kazutaka@...426...> Hi. I made a new gui project with wizard, Then create a new form and add followings in Form1.class. PUBLIC SUB Form_Open() Form1.X = 0 Form1.Y = 0 END With gb.qt, that works fine, But with gb.gtk, that does not works. Am I doing something wrong? -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka at ...426... -------------------------------------- From kazutaka at ...426... Mon Feb 6 15:22:44 2006 From: kazutaka at ...426... (HARADA Kazutaka) Date: Mon, 6 Feb 2006 23:22:44 +0900 Subject: [Gambas-devel] Form does not move. In-Reply-To: <20060206225053.444cd5e5.kazutaka@...426...> References: <20060206225053.444cd5e5.kazutaka@...426...> Message-ID: <20060206232244.aa9a8db2.kazutaka@...426...> I'm sorry. It forgot to write. I am using gambas2-1.9.24 with gtk-2.8.11 and XOrg-6.9.0. On Mon, 6 Feb 2006 22:50:53 +0900 HARADA Kazutaka wrote: > Hi. > > I made a new gui project with wizard, Then create a > new form and add followings in Form1.class. > > PUBLIC SUB Form_Open() > > Form1.X = 0 > Form1.Y = 0 > > END > > With gb.qt, that works fine, > But with gb.gtk, that does not works. > > Am I doing something wrong? > -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka at ...426... -------------------------------------- From gambas at ...1... Sat Feb 18 17:52:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 17:52:51 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.25 Message-ID: <200602181752.51690.gambas@...1...> Banzai! There are two new important components in this version: * gb.image, that allows you to apply various effects on Image objects: - Adjust brightness, contrast, intensity. - Create gradients. - Flatten. - Fade. - Make it gray. - Desaturate. - Threshold. - Solarize. - Normalize. - Equalize. - Invert. - Emboss. - Edge. - Despeckle. - Charcoal. - OilPaint. - Blur. - Sharpen. - Spread. - Shade. - Swirl. - Wave. - Noise. - Implode. This component shoule be compatible with gb.qt, gb.gtk, and any other component that provide an image creator hook. * gb.db.form, that provides some data bound controls, i.e. controls that can display and edit database records automatically. THIS DEVELOPMENT IS SPONSORED (AND PAYED (I hope so :-))) BY GNULINEX AND THE SPANISH REGION OF EXTREMADURA. To Daniel Campos: * If you can send me a pretty logo of you for that... * The component relies on TableView, and so cannot be used by gb.gtk at the moment. Do you plan to make a TableView in gb.gtk? * I couldn't go to Malaga, because of a bad flu. IMPORTANT: This component is highly experimental yet! To test it: - Run the 'Database' example, and create a database named 'test', create the tables with the button 'Create', and fill them with the 'Fill' button. - Then, open the gb.db.form project in the source tree, and run it. You will see... If you cannot connect, check the database connection parameters in the Main module. In a few words, here are the principle: The DataSource control is a Container that is linked to a specific database table. Each data control inside the DataSource are automatically linked to it. IMPORTANT: the table must have a primary key. The DataBrowser control provides a little control panel to navigate through the DataSource record, and a list of the records of the DataSource. The DataControl is a control that allow to edit a specific field of the current DataSource record. The DataCombo is a control that allow to edit a field that is actually a key of another table. Instead of displaying the key, its goal is to display another field of the foreign table. The DataView is a list view of all records inside a DataSource. It is used internally by the DataBrowser. Note that DataSource can be imbricated. Then, the inner DataSource is constrained by the values of the primary key of the parent DataSource. This is used in the gb.db.form project example. Tell me what you think about that. There are many things to improve and debug yet... Otherwise, there are two important changes that can break your projects: * The RENAME instruction was... renamed, as MOVE. * The Load() method of Image, Picture and Drawing classes is now static, and returns a newly created object. Finally, here is the changelog: --8<-------------------------------------------------------------------------- DEVELOPMENT ENVIRONMENT * BUG: Translation of component names are used now. * NEW: String[] properties are managed now. * BUG: Selecting all controls on a form updates the property window correctly now. * BUG: Toolbox panels are intelligently sorted now. * BUG: Big images are now stretched in the project treeview. INTERPRETER * NEW: The image and picture hooks syntax has changed. * NEW: The image and picture API has been enhanced. * NEW: _compare is a new special method used for comparing an object with another during a sort. * NEW: System.User now returns the same static object as the User class. * NEW: String[].Join() now can take an extra optional argument that is an escape string added to the beginning and the end of each joined element. * BUG: The event inheritance now works correctly with interpreted classes * BUG: Calling a method on an anonymous reference now works correctly if the called method does not always have the same number of arguments. * NEW: Implementation of the new IS operator (see below). * BUG: The Subst() instruction now interprets the '&&' sequence as a single '&'. * NEW: Path names now interprets the '~' character like the shell does. * BUG: INPUT now works correctly with more than one argument. * BUG: The debugger now prints string expressions without corrupting memory anymore. COMPILER * NEW: The RENAME/AS instruction was replaced by the MOVE/TO instruction. * NEW: Class names are detected at compilation time now. * BUG: When declaring several local variables on the same line, each one can have its own initialization expression now. * BUG: Internal subroutines, i.e. those that are associated with an instruction, cannot be called directly anymore. * NEW: The syntax '[]' now returns NULL. * NEW: A new subroutine named Comp(), that compare two strings. * NEW: IS is a new operator that returns if an object is an instance of a specified class, or one of its child classes. EVAL COMPONENT * BUG: Now class names are displayed with the same color as datatypes. DATABASE COMPONENT * NEW: The Firebird driver was merged into the source tree. * BUG: The current database is now correctly tracked, and cannot point at an already freed object anymore. * BUG: Connection.Version now correctly checks that the database is opened. * NEW: Connection.Opened returns if a connection is opened. * NEW: Connection.Limit() is a new method that makes the next SQL request only return a specified number of rows. This method returns the connection object, so that you can use the following syntax: DB.Limit(X).Exec(...) The limit is reset to infinity once used. * NEW: Information on how to limit the result of a SQL query is filled by the open_database() driver function. * BUG: Connection.Delete() does not leak memory anymore. * NEW: Writing to a serial field is silently ignored now. NETWORKING COMPONENT * BUG: Now ServerSocket can accept more than five connections without crashing anymore. * NEW: ServerSocket is now enumerable, and returns each connected socket. * NEW: ServerSocket.Count returns the number of connected sockets. QT COMPONENT * NEW: Image.Load() is now a static method that returns a newly created image from a file. * NEW: Picture.Load() is now a static method that returns a newly created picture from a file. * NEW: Drawing.Load() is now a static method that returns a newly created drawing from a file. * NEW: The Image constructor now takes an extra optional parameter that indicates if the image has an alpha channel. * NEW: Image.Transparent is a new property that indicates if an image has an alpha channel. * NEW: Image.Depth is read-only now. * NEW: Label.Padding is a new property that represents the pixel padding between the label border and the label text. * BUG: The Label.AutoResize property was enabled again, but is now TRUE by default. * BUG: Image conversion methods were fixed. GTK+ COMPONENT * NEW: Image.Load() is now a static method that returns a newly created image from a file. * NEW: Picture.Load() is now a static method that returns a newly created image from a file. * BUG: The HSV/RGB color conversion method now use the same value range than the QT component. * BUG: Loaded images are automatically converted to a 32-bits per pixel format. * BUG: Image conversion methods were fixed. PCRE COMPONENT * BUG: The PCRE component should now compile with older versions of libpcre. IMAGE COMPONENT * NEW: This is a new component for applying many various effects on images. The effects source code was ported from the KDE libkdefx library, which includes itself some ImageMagick algorithms, and from the KolourPaint program. DATABASE FORM COMPONENT * NEW: This component implements data bound controls. It provides the following new controls: DataSource, DataBrowser, DataView, DataControl and DataCombo. It is highly experimental at the moment. --8<-------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From dcamposf at ...176... Sat Feb 18 18:56:05 2006 From: dcamposf at ...176... (Daniel Campos) Date: Sat, 18 Feb 2006 18:56:05 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.25 In-Reply-To: <200602181752.51690.gambas@...1...> References: <200602181752.51690.gambas@...1...> Message-ID: <7259b5ae0602180956v36845cf0w@...178...> > Banzai! Banzai! > > To Daniel Campos: > > * If you can send me a pretty logo of you for that... I send you the official gnuLinex logo, in big format, so you can adjust it as you want... * The component relies on TableView, and so cannot be used by gb.gtk at the > moment. Do you plan to make a TableView in gb.gtk? Yes! * I couldn't go to Malaga, because of a bad flu. Do not worry, I hope you're OK now! It's time to begin to test, I will begin this Monday! Quite good job! Regards, D. Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Newgnulinex01.jpg Type: image/jpeg Size: 42214 bytes Desc: not available URL: From lordheavy at ...141... Mon Feb 20 13:10:41 2006 From: lordheavy at ...141... (Laurent Carlier) Date: Mon, 20 Feb 2006 13:10:41 +0100 Subject: [Gambas-devel] gb.pdf doesn't build with libpoppler0.5.0 ... Message-ID: <200602201310.41399.lordheavy@...141...> Under the future ubuntu dapper .... The output : make[4]: Entering directory `/home/lordh/gambas2-1.9.25/gb.pdf/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function 'int GB_INIT()': main.cpp:63: error: 'class GlobalParams' has no member named 'setupBaseFontsFc' make[4]: *** [main.lo] Error 1 Because poppler0.5.0 doesn't include setupBaseFontsFc() method anymore :-) I didn't find a way to test poppler lib version .... and when removing previous lines : make[4]: Entering directory `/home/lordh/gambas2-1.9.25/gb.pdf/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT CPdfDocument.lo -MD -MP -MF ".deps/CPdfDocument.Tpo" -c -o CPdfDocument.lo CPdfDocument.cpp; \ then mv -f ".deps/CPdfDocument.Tpo" ".deps/CPdfDocument.Plo"; else rm -f ".deps/CPdfDocument.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT CPdfDocument.lo -MD -MP -MF .deps/CPdfDocument.Tpo -c CPdfDocument.cpp -fPIC -DPIC -o .libs/CPdfDocument.o CPdfDocument.cpp: In function 'void PDFDOCUMENT_open(void*, void*)': CPdfDocument.cpp:156: error: request for member 'rgb8' in 'white', which is of non-class type 'Guchar [4]' CPdfDocument.cpp:156: error: 'splashMakeRGB8' was not declared in this scope CPdfDocument.cpp:157: error: no matching function for call to 'SplashOutputDev::SplashOutputDev(SplashColorMode, int, Guchar [4])' /usr/include/poppler/SplashOutputDev.h:49: note: candidates are: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, Guchar*, GBool, GBool) /usr/include/poppler/SplashOutputDev.h:42: note: SplashOutputDev::SplashOutputDev(const SplashOutputDev&) CPdfDocument.cpp:121: warning: unused variable 'items' CPdfDocument.cpp: In function 'void PDFPAGE_width(void*, void*)': CPdfDocument.cpp:382: error: 'class Page' has no member named 'getWidth' CPdfDocument.cpp: In function 'void PDFPAGE_height(void*, void*)': CPdfDocument.cpp:388: error: 'class Page' has no member named 'getHeight' CPdfDocument.cpp: In function 'uint32_t* get_page_data(CPDFDOCUMENT*, int, int, int*, int*, double, int)': CPdfDocument.cpp:404: error: 'class Page' has no member named 'getWidth' CPdfDocument.cpp:407: error: 'class Page' has no member named 'getHeight' CPdfDocument.cpp:413: error: 'class Page' has no member named 'getWidth' CPdfDocument.cpp:413: error: 'class Page' has no member named 'getWidth' CPdfDocument.cpp:414: error: 'class Page' has no member named 'getHeight' CPdfDocument.cpp:414: error: 'class Page' has no member named 'getHeight' CPdfDocument.cpp:436: error: no matching function for call to 'Page::displaySlice(SplashOutputDev*&, double, double, int&, int, int&, int&, int&, int&, NULL, Catalog*)' /usr/include/poppler/Page.h:180: note: candidates are: void Page::displaySlice(OutputDev*, double, double, int, GBool, GBool, int, int, int, int, Links*, Catalog*, GBool (*)(void*), void*, GBool (*)(Annot*, void*), void*) CPdfDocument.cpp:439: error: request for member 'rgb8' in 'map-> SplashBitmap::getDataPtr()', which is of non-class type 'Guchar*' CPdfDocument.cpp:396: warning: unused variable 'vl1' CPdfDocument.cpp:396: warning: unused variable 'vl2' CPdfDocument.cpp:396: warning: unused variable 'vl3' CPdfDocument.cpp:397: warning: unused variable 'i' CPdfDocument.cpp: In function 'void PDFPAGE_select(void*, void*)': CPdfDocument.cpp:486: warning: unused variable '_p' CPdfDocument.cpp: In function 'void PDFPAGELINKS_get(void*, void*)': CPdfDocument.cpp:503: warning: unused variable '_p' CPdfDocument.cpp: In function 'void PDFPAGE_find(void*, void*)': CPdfDocument.cpp:581: warning: unused variable '_p' CPdfDocument.cpp: In function 'void PDFPAGERESULT_get(void*, void*)': CPdfDocument.cpp:588: warning: unused variable '_p' make[4]: *** [CPdfDocument.lo] Error 1 regards, -- jabber : lordheavy at ...298... mail : lordheavym at ...394... From brian at ...418... Mon Feb 20 18:24:58 2006 From: brian at ...418... (Christopher Brian Jack) Date: Mon, 20 Feb 2006 09:24:58 -0800 (PST) Subject: [Gambas-devel] Audio path Message-ID: <20060220091141.E93161@...419...> If I wanted to make a gb.audio.effects library for doing postmixing effects like reverb, echo and other such nifties and what is the best way to approach the task as in where to hook in, etc.? Ideally it should be possible for the effects drivers to modify the sound stream(s) or music stream(s) independently (one or the other, both, or none). Ideally I'd like to implement as a separate component selectable into a project, rather than hack into the gb.sdl.audio code directly. Also how would I indicate to the system the gb.xxx.audio dependency (I use xxx because there may come a time where more than one audio component becomes available in the future, say hypathetically, gb.directsound.audio). Ideally base audio component independance should also be possible. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...418... From gambasfr at ...4... Mon Feb 20 23:25:39 2006 From: gambasfr at ...4... (Fabien Bodard) Date: Mon, 20 Feb 2006 23:25:39 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.25 In-Reply-To: <7259b5ae0602180956v36845cf0w@...178...> References: <200602181752.51690.gambas@...1...> <7259b5ae0602180956v36845cf0w@...178...> Message-ID: <200602202325.39349.gambasfr@...4...> Hi Benoit, Daniel I've trying to make a little sample for managing database with the new components... but... where does i define the connection ? i don't understand what you are doing in the gb.dataform sample.... Regards, Fabien Le Samedi 18 F?vrier 2006 18:56, Daniel Campos a ?crit?: > > Banzai! > > Banzai! > > > To Daniel Campos: > > > > * If you can send me a pretty logo of you for that... > > I send you the official gnuLinex logo, in big format, so you can adjust it > as you want... > > > > * The component relies on TableView, and so cannot be used by gb.gtk at the > > > moment. Do you plan to make a TableView in gb.gtk? > > Yes! > > > * I couldn't go to Malaga, because of a bad flu. > > > Do not worry, I hope you're OK now! > > > It's time to begin to test, I will begin this Monday! > > Quite good job! > > Regards, > > D. Campos From gambas at ...1... Mon Feb 20 23:38:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 20 Feb 2006 23:38:27 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.25 In-Reply-To: <200602202325.39349.gambasfr@...4...> References: <200602181752.51690.gambas@...1...> <7259b5ae0602180956v36845cf0w@...178...> <200602202325.39349.gambasfr@...4...> Message-ID: <200602202338.27536.gambas@...1...> On Monday 20 February 2006 23:25, Fabien Bodard wrote: > Hi Benoit, Daniel > > I've trying to make a little sample for managing database with the new > components... but... where does i define the connection ? i don't > understand what you are doing in the gb.dataform sample.... > > Regards, > Fabien > At the moment the gb.db.form controls only use the current connection. Just create a new connection object, that you put in a global variable, so that it is not freed, and it becomes automatically the current connection object. The controls will automatically open the connection when needed. If you *really* want to understand what happens, just open the gb.db.form project, and run it step by step :-) Regards, -- Benoit Minisini From gambasfr at ...4... Tue Feb 21 07:47:26 2006 From: gambasfr at ...4... (Fabien Bodard) Date: Tue, 21 Feb 2006 07:47:26 +0100 Subject: [Gambas-devel] Release of Gambas 1.9.25 In-Reply-To: <200602202338.27536.gambas@...1...> References: <200602181752.51690.gambas@...1...> <200602202325.39349.gambasfr@...4...> <200602202338.27536.gambas@...1...> Message-ID: <200602210747.26842.gambasfr@...4...> Le Lundi 20 F?vrier 2006 23:38, Benoit Minisini a ?crit?: > On Monday 20 February 2006 23:25, Fabien Bodard wrote: > > Hi Benoit, Daniel > > > > I've trying to make a little sample for managing database with the new > > components... but... where does i define the connection ? i don't > > understand what you are doing in the gb.dataform sample.... > > > > Regards, > > Fabien > > At the moment the gb.db.form controls only use the current connection. > > Just create a new connection object, that you put in a global variable, so > that it is not freed, and it becomes automatically the current connection > object. > > The controls will automatically open the connection when needed. > > If you *really* want to understand what happens, just open the gb.db.form > project, and run it step by step :-) so, it was what i was understand.... but what about multiple database sources ? > > Regards, From brian at ...418... Tue Feb 21 12:01:49 2006 From: brian at ...418... (Christopher Brian Jack) Date: Tue, 21 Feb 2006 03:01:49 -0800 (PST) Subject: [Gambas-devel] Audio path (fwd) Message-ID: <20060221030146.C97482@...419...> .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...418... ---------- Forwarded message ---------- Date: Mon, 20 Feb 2006 09:24:58 -0800 (PST) From: Christopher Brian Jack Reply-To: gambas-devel at lists.sourceforge.net To: Gambas Development List Subject: [Gambas-devel] Audio path If I wanted to make a gb.audio.effects library for doing postmixing effects like reverb, echo and other such nifties and what is the best way to approach the task as in where to hook in, etc.? Ideally it should be possible for the effects drivers to modify the sound stream(s) or music stream(s) independently (one or the other, both, or none). Ideally I'd like to implement as a separate component selectable into a project, rather than hack into the gb.sdl.audio code directly. Also how would I indicate to the system the gb.xxx.audio dependency (I use xxx because there may come a time where more than one audio component becomes available in the future, say hypathetically, gb.directsound.audio). Ideally base audio component independance should also be possible. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...418... ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Tue Feb 21 12:37:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 21 Feb 2006 12:37:18 +0100 Subject: [Gambas-devel] Audio path In-Reply-To: <20060220091141.E93161@...419...> References: <20060220091141.E93161@...419...> Message-ID: <200602211237.18828.gambas@...1...> On Monday 20 February 2006 18:24, Christopher Brian Jack wrote: > If I wanted to make a gb.audio.effects library for doing postmixing > effects like reverb, echo and other such nifties and what is the best way > to approach the task as in where to hook in, etc.? > > Ideally it should be possible for the effects drivers to modify the sound > stream(s) or music stream(s) independently (one or the other, both, or > none). > > Ideally I'd like to implement as a separate component selectable into a > project, rather than hack into the gb.sdl.audio code directly. > > Also how would I indicate to the system the gb.xxx.audio dependency (I use > xxx because there may come a time where more than one audio component > becomes available in the future, say hypathetically, > gb.directsound.audio). > > Ideally base audio component independance should also be possible. > The sdl library allows to define hook functions to process samples before they are sent to the sound card. But then your effects depends on the gb.sdl.sound library. But I think a better idea should be to look at GStreamer, to see how it works, and how it is possible to make a sound component from it. What do you think about that ? -- Benoit Minisini From brian at ...418... Tue Feb 21 12:40:49 2006 From: brian at ...418... (Christopher Brian Jack) Date: Tue, 21 Feb 2006 03:40:49 -0800 (PST) Subject: [Gambas-devel] Audio path In-Reply-To: <200602211237.18828.gambas@...1...> References: <20060220091141.E93161@...419...> <200602211237.18828.gambas@...1...> Message-ID: <20060221034007.T97641@...419...> On Tue, 21 Feb 2006, Benoit Minisini wrote: > On Monday 20 February 2006 18:24, Christopher Brian Jack wrote: > > If I wanted to make a gb.audio.effects library for doing postmixing > > effects like reverb, echo and other such nifties and what is the best way > > to approach the task as in where to hook in, etc.? > > > > Ideally it should be possible for the effects drivers to modify the sound > > stream(s) or music stream(s) independently (one or the other, both, or > > none). > > > > Ideally I'd like to implement as a separate component selectable into a > > project, rather than hack into the gb.sdl.audio code directly. > > > > Also how would I indicate to the system the gb.xxx.audio dependency (I use > > xxx because there may come a time where more than one audio component > > becomes available in the future, say hypathetically, > > gb.directsound.audio). > > > > Ideally base audio component independance should also be possible. > > > > The sdl library allows to define hook functions to process samples before they > are sent to the sound card. But then your effects depends on the gb.sdl.sound > library. > > But I think a better idea should be to look at GStreamer, to see how it works, > and how it is possible to make a sound component from it. > > What do you think about that ? What is GStreamer? .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...418... From gambas at ...1... Tue Feb 21 13:35:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 21 Feb 2006 13:35:46 +0100 Subject: [Gambas-devel] Audio path In-Reply-To: <20060221034007.T97641@...419...> References: <20060220091141.E93161@...419...> <200602211237.18828.gambas@...1...> <20060221034007.T97641@...419...> Message-ID: <200602211335.46649.gambas@...1...> On Tuesday 21 February 2006 12:40, Christopher Brian Jack wrote: > On Tue, 21 Feb 2006, Benoit Minisini wrote: > > On Monday 20 February 2006 18:24, Christopher Brian Jack wrote: > > > If I wanted to make a gb.audio.effects library for doing postmixing > > > effects like reverb, echo and other such nifties and what is the best > > > way to approach the task as in where to hook in, etc.? > > > > > > Ideally it should be possible for the effects drivers to modify the > > > sound stream(s) or music stream(s) independently (one or the other, > > > both, or none). > > > > > > Ideally I'd like to implement as a separate component selectable into a > > > project, rather than hack into the gb.sdl.audio code directly. > > > > > > Also how would I indicate to the system the gb.xxx.audio dependency (I > > > use xxx because there may come a time where more than one audio > > > component becomes available in the future, say hypathetically, > > > gb.directsound.audio). > > > > > > Ideally base audio component independance should also be possible. > > > > The sdl library allows to define hook functions to process samples before > > they are sent to the sound card. But then your effects depends on the > > gb.sdl.sound library. > > > > But I think a better idea should be to look at GStreamer, to see how it > > works, and how it is possible to make a sound component from it. > > > > What do you think about that ? > > What is GStreamer? > Here is the Linux Audio Developer's Simple Plugin API: http://www.ladspa.org/ And it seems you can use these plug-ins in a GStreamer pipeline with a special plug-in that encapsulates them. Regards, -- Benoit Minisini