nbs | 1 Aug 03:22 2002
Picon

Tux Paint 2002.07.31 released!


Tux Paint, my simple and amusing drawing program for young children,
now uses 'gettext' to handle translations! :)

(This is the major change, among a number of others... see below)

  http://www.newbreedsoftware.com/tuxpaint/

Hopefully a Windows build and an update to the Debian package will be made.

-bill!

2002.July.31
  * Fixed memory deallocation bug in "Open" dialog function.

  * Translated to Finnish
    Tarmo Toikkanen <tarmo.toikkanen <at> iki.fi>

  * Update Spanish translation
    Gabriel Gazzan <ggabriel <at> internet.com.uy>

  * Switched from using #define'd strings for translations to using "gettext"
    and ".po" files (see src/messages/)
    Fabian Franz <FabianFranz <at> gmx.de>
    (Thanks to Andreas Best <a_best <at> web.de> for help getting locales working)

  * Added "--locale" option to override current locale at runtime
    (e.g. "--locale de_DE <at> euro")

  * Added "--lang" option to override current locale at runtime,
(Continue reading)

Sam Lantinga | 1 Aug 06:08 2002

Re: SDL_BlitSurface with src==dst

> Hi,

> Is it save to use SDL_BlitSurface (SDL 1.2) with equal source and
> destination surfaces? "Save" means that if the source and destination
> rectangle overlapp then that part of the source that would be overwritten
> is copied first, so I don't get garbage on the screen. I tested it on
> Win2k and it seems to work fine, but can I be sure that it works with
> other versions/platforms as well?

It should work fine.  If it doesn't, it's a bug.

See ya!
	-Sam Lantinga, Software Engineer, Blizzard Entertainment
Neil Bradley | 1 Aug 06:38 2002

Development of a sound library

I'm currently working on a sound library that complements SDL's
functionality. Think of it as a virtual studio, quite different from
anything that's there.

Overall, it has:

* Mixing of all channels
* Volume gain/attentuation
* Endless amount of channels (limited by CPU and memory)
* 16 Bit only
* Handles endian/sign/sample rate issues
* Adjustable sample rate

On a per channel basis, it has:

* Stereo 16 bit audio per channel
* Pitch shifting
* Balance/panning
* Delay
* Mute
* Plugin architecture - plug in whatever sound generation you'd like
  and connect it to a channel
* Mute groups - attach several plugins to a channel - only one plays, but
  will cut off one and start playing another without annoying clicks/pops
* Process plugin per channel, allowing chainable custom processing on each
  channel (processing, such as gating/compression need to be written!)
* Fade in/out
* Mute will smoothly silence a channel and not make it click/pop

So far my list of plugins include:
(Continue reading)

Atrix Wolfe | 1 Aug 06:35 2002
Picon
Picon

Re: Development of a sound library

This is kinda off topic but back in my pre-sdl directx days i was trying to
make a program called Sound Brush that would take a scripting language that
could create vars and evalutate math that eventualy would be some form of
y=f(t) where t was time so you could basicly mathematicly describe sound.
Do you think this kind of tool is something sound related people would think
was cool or useful?  Im askin cause you seem to know alot about
sound...especialy after seein that pic of your workstation heheh.

----- Original Message -----
From: "Neil Bradley" <nb <at> synthcom.com>
To: <sdl <at> libsdl.org>
Sent: Wednesday, July 31, 2002 9:38 PM
Subject: [SDL] Development of a sound library

> I'm currently working on a sound library that complements SDL's
> functionality. Think of it as a virtual studio, quite different from
> anything that's there.
>
> Overall, it has:
>
> * Mixing of all channels
> * Volume gain/attentuation
> * Endless amount of channels (limited by CPU and memory)
> * 16 Bit only
> * Handles endian/sign/sample rate issues
> * Adjustable sample rate
>
> On a per channel basis, it has:
>
> * Stereo 16 bit audio per channel
(Continue reading)

sean whalen | 1 Aug 06:48 2002
Picon
Picon

Re: Problems with SDL and Slackware 8.1

i don't have a solution for you, but i just set up sdl with slack 8.1 yesterday and it's compiling/running my apps fine.
    -sean
----- Original Message -----
Sent: Wednesday, July 31, 2002 2:04 PM
Subject: [SDL] Problems with SDL and Slackware 8.1

Has anybody else out there managed to get this combo working?
I installed the SDL without any errors but I can't complile any applications.
When running configure for the tests i recieve the following message:

checking for SDL - version >= 1.2.3... no
*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** SDL version 1.2.3 not found!

I installed the library at /usr/local/lib (is included in /etc/ld.so.conf), i have run ldconfig and i've tried setting up LD_LIBRARY_PATH to /usr/local/lib

after checking out the faqs I removed the config.cache files and made sure that there wheren't any old SDL versions hiding in some dark corner of my fs.

finally some more info...

which sdl-config
/usr/local/bin/sdl-config
sdl-config --version
1.2.4
locate libSDL
/usr/local/games/tuxracer-demo/libSDL-1.2.so.0
/usr/local/games/tuxracer-demo/libSDL_mixer-1.2.so.0
/usr/local/lib/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0.0.4
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL.so
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.a
/root/SDL-1.2.4/src/main/libSDLmain.a
/root/SDL-1.2.4/src/.libs/libSDL-1.2.so.0.0.4
/root/SDL-1.2.4/src/.libs/libSDL-1.2.so.0
/root/SDL-1.2.4/src/.libs/libSDL.so
/root/SDL-1.2.4/src/.libs/libSDL.lai
/root/SDL-1.2.4/src/.libs/libSDL.a
/root/SDL-1.2.4/src/.libs/libSDL.la
/root/SDL-1.2.4/src/libSDL.la
tail config.log

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "SDL_tests"
#define VERSION "1.2.3"

configure: exit 1

Gratefull for all/any help :)
_______________________________________________________________
Be Unique! Get your personalized email address at www.NamePlanet.com


Carlos | 1 Aug 08:00 2002
Picon

Re: Problems with SDL and Slackware 8.1

Did you put /usr/local/bin in the path too ?

> Has anybody else out there managed to get this combo working?
> I installed the SDL without any errors but I can't complile any
> applications.
> When running configure for the tests i recieve the following message:
> 
> checking for SDL - version >= 1.2.3... no
> *** Could not run SDL test program, checking why...
> *** The test program compiled, but did not run. This usually means
> *** that the run-time linker is not finding SDL or finding the wrong
> *** version of SDL. If it is not finding SDL, you'll need to set your
> *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
> point
> *** to the installed location Also, make sure you have run ldconfig if
> that
> *** is required on your system
> ***
> *** If you have an old version installed, it is best to remove it,
> although
> *** you may also be able to get things to work by modifying
> LD_LIBRARY_PATH
> configure: error: *** SDL version 1.2.3 not found!
> 
> I installed the library at /usr/local/lib (is included in
> /etc/ld.so.conf), i have run ldconfig and i've tried setting up
> LD_LIBRARY_PATH to /usr/local/lib
> 
> after checking out the faqs I removed the config.cache files and made
> sure that there wheren't any old SDL versions hiding in some dark corner
> of my fs.
> 
> finally some more info...
> 
> which sdl-config
> /usr/local/bin/sdl-config
> sdl-config --version
> 1.2.4
> locate libSDL
> /usr/local/games/tuxracer-demo/libSDL-1.2.so.0
> /usr/local/games/tuxracer-demo/libSDL_mixer-1.2.so.0
> /usr/local/lib/libSDLmain.a
> /usr/local/lib/libSDL-1.2.so.0.0.4
> /usr/local/lib/libSDL-1.2.so.0
> /usr/local/lib/libSDL.so
> /usr/local/lib/libSDL.la
> /usr/local/lib/libSDL.a
> /root/SDL-1.2.4/src/main/libSDLmain.a
> /root/SDL-1.2.4/src/.libs/libSDL-1.2.so.0.0.4
> /root/SDL-1.2.4/src/.libs/libSDL-1.2.so.0
> /root/SDL-1.2.4/src/.libs/libSDL.so
> /root/SDL-1.2.4/src/.libs/libSDL.lai
> /root/SDL-1.2.4/src/.libs/libSDL.a
> /root/SDL-1.2.4/src/.libs/libSDL.la
> /root/SDL-1.2.4/src/libSDL.la
> tail config.log
> 
> #define PACKAGE_NAME ""
> #define PACKAGE_TARNAME ""
> #define PACKAGE_VERSION ""
> #define PACKAGE_STRING ""
> #define PACKAGE_BUGREPORT ""
> #define PACKAGE "SDL_tests"
> #define VERSION "1.2.3"
> 
> configure: exit 1
> 
> Gratefull for all/any help :) 
> 
> _______________________________________________________________
> Be Unique! Get your personalized email address at www.NamePlanet.com
> <http://www.NamePlanet.com> 
> 
> 
> 
Loren Osborn | 1 Aug 09:34 2002
Picon

Re: Examples for SDL_sound


--- GaŽtan_de_Menten <ged <at> bugfactory.org> wrote:
> Even though I'm now convinced what I wanted to do
> was foolish, I think there
> should be some more examples included in
> SDL_sound... At least one playing
> music and sfx... Coz, from what I've seen the
> example provided (playsound)
> provided only plays one sound at a time... with lots
> of options but well...
> Even if it's simple (I really dunno in fact) it'd
> really be nice to have
> such an example...

I disagree that such ideas are foolish. Sound
decompression really doesn't take much CPU time on
modern hardware, and not using it seemingly wastes
disk space for no good reason (unless you are indeed
targeting low-end hardware)...  There are arguments
both for and against, and it does depend on the
application.

-Loren

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Alexis | 1 Aug 10:00 2002

sdl performance

I've been coding some SDL stuff for some time and i was wondering if there
is any kinda study/benchmark between some os-dependant applications and the
same apps coded with SDL to compare performance. I mean the
whaaaa-sdl-is-f*cking-quite-decent-to-blit-stuff effect is a useful info,
but i'd like to have a rather better knowledge of how fast SDL is compared
to OS-specific stuff (and not for blitting op only, event dispaching for eg
would be nice too).
I wonder if any of you had work on such a study or have a link to this kind
of information somewhere.

Thx

Alex
Damjan Mozetic | 1 Aug 12:40 2002
Picon

SDL Codewarrior compile

I've been trying everything possible to compile a minimal program using SDL
with Metrowerks Codewarrior 7 for windows... no success.

Does anybody know how to set codewarrior up to compile sdl projects? Maybe I
should compile the SDL sources with CW?

Please help!
Michael Cowart | 1 Aug 13:53 2002
Picon

possible sdl_ttf bug

Hi, I am having a problem using sdl_ttf. I have a
dynamically allocated string that I use for a while,
but when I go to free it, I get a segfault. I debuged
the program, and it seems that when I print the text,
the pointer gets all garked up. Here's the debug
output -

//here it looks like TTF_SizeUnicode changed my
pointer

Old value = 0x804bbb0 "This is a test"
New value = 0x8040000 <Address 0x8040000 out of
bounds>
0x400783b4 in TTF_SizeUNICODE () from
/usr/lib/libSDL_ttf-2.0.so.0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 31679)]
0x40135b9c in free () from /lib/libc.so.6
(gdb)

I'm using the newest sdl-ttf (2.0.5-1) on Mandrake 8.1

I'm not even using TTF_SizeUNICODE, i'm using
TTF_SizeText. The text prints just fine, it's when I
try to free it that it segfaults. Here's the code
(this function is in a dll that my program uses)
(don't pay attention to the pallettized - non
palettized stuff, i'm only using non-palettized
surfaces right now)

//begin code
DECLSPEC int
g_emuPrintText (SDL_Surface *surf_Dest,TTF_Font
*f_Font,
                const char *ac_Text,SDL_Rect
*rect_Dest,
                SDL_Color col_TextColor)
{
    SDL_Surface *surf_Text = NULL;               
//the temporary text surface

    //figure out the size of the text
    TTF_SizeText
(f_Font,ac_Text,(int*)&(rect_Dest->w),(int*)&(rect_Dest->h));

    //if destination surface is palettized
    if (surf_Dest->format->BitsPerPixel <= 8)
    {
        surf_Text = TTF_RenderText_Solid
(f_Font,ac_Text,col_TextColor);

        //make sure text surface is valid
        if (surf_Text == NULL)
        {
            printf ("Error creating text surface:
%s\n",SDL_GetError());
            return FAILURE;
        }

        //now, set palette
        memcpy
(surf_Text->format->palette,surf_Dest->format->palette,sizeof
(SDL_Palette));
    }
    //non palettized
    else
    {
        surf_Text = TTF_RenderText_Blended
(f_Font,ac_Text,col_TextColor);

        //make sure text surface is valid
        if (surf_Text == NULL)
        {
            printf ("Error creating text surface:
%s\n",SDL_GetError());
            return FAILURE;
        }
    }

    //now, blit
    if (SDL_BlitSurface
(surf_Text,NULL,surf_Dest,rect_Dest) == FAILURE)
    {
        printf ("Failure blitting text:
%s\n",SDL_GetError ());
        SDL_FreeSurface (surf_Text);
        return FAILURE;
    }

    //cleanup
    SDL_FreeSurface (surf_Text);

    return SUCCESS;
}
//end code

Thanks,

=====
Michael Cowart
Department of Computer Engineering, University of Arkansas
cutefuzzysquirrel <at> yahoo.com

"Elen sila lumenn' omentielvo" - a star shines on the hour of our meeting

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

Gmane