SDL_image, SDL_mixer, SDL_net, SDL_ttf released

New versions of the SDL_image, SDL_mixer, SDL_net, and SDL_ttf libraries
are now available.

Note that the binaries of SDL_ttf have been built with a new version
of FreeType 2, giving great font quality.

All of the libraries have been updated with the libtool and C calling
convention changes of the recent SDL 1.2.4 release, as well as the following
set of improvements:

SDL_image: http://www.libsdl.org/projects/SDL_image/

  • Worked around exit() in the jpeg image library

SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/

  • Fixed recursive audio lock in the mixing function
  • Fixed setting invalid volume when querying mixer and music volumes
  • Implemented Ogg Vorbis stream rewinding
  • Added native midi support on Linux, using GPL code
    –enable-music-native-midi-gpl
  • Added seek support for MP3 files
  • Sample “finished” callbacks are now always called when a sample is stopped.
  • Added an API for seeking in music files (implemented for MOD and Ogg music)
    Mix_FadeInMusicPos(), Mix_SetMusicPosition()
  • Exposed the mikmod synchro value for music synchronization
    Mix_SetSynchroValue(), Mix_GetSynchroValue()

SDL_net: http://www.libsdl.org/projects/SDL_net/

  • Sockets are created with the SO_REUSEADDR flag by default
  • Fixed data alignment problems on IRIX

SDL_ttf: http://www.libsdl.org/projects/SDL_ttf/

  • Fixed a potential malloc of zero bytes in the font code.

Enjoy!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

> SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/ > * Fixed recursive audio lock in the mixing function

Yay! Finally! :wink:

> * Exposed the mikmod synchro value for music synchronization > Mix_SetSynchroValue(), Mix_GetSynchroValue()

Time for me to write “Dance, Dance, Penguinista” :wink:

-bill!On Sun, Apr 14, 2002 at 02:47:51PM -0700, Sam Lantinga wrote:

Sweeeet!

I noticed there is a new version of the SDL_net docs, have the docs for
the other libs been updated?

	Bob Pendleton

Sweeeet!

I noticed there is a new version of the SDL_net docs, have the docs for
the other libs been updated?

Docs? What docs? :slight_smile:

Jon Atkins has volunteered to write the SDL_net documentation, but hasn’t
done so for the other libraries listed. There are several tutorials on the
libraries on the SDL tutorials page though:
http://www.libsdl.org/tutorials.html

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

[…]

SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/
[…]

  • Added native midi support on Linux, using GPL code
    –enable-music-native-midi-gpl

Why GPLed code? What is needed, exactly?

I have a MIDI file loader/sequencer (formats 0 and 1) that I’m using in
the new audio engine for Kobo Deluxe. It was originally taken from an
LGPLed C++ project, but needed quite some work… I’ve ported to C, added
file format checks and various features, and adapted the sequencer to
buffer based processing among other things.

There’s a “port style” interface between the sequencer and whatever
target it’s playing to, so it’s pretty easy to hook up to a softsynth,
MIDI driver or whatever. (I have input drivers for OSS and ALSA, but
output driver only for the real time synth of my engine - only hacked
what I needed so far.)

Anything of use there?

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Sunday 14 April 2002 23:47, Sam Lantinga wrote:

I’m not sure. I think a whole bunch of the sequencing code was lifted
from playmidi. Feel free to download it and take a look. If you want
to substitute non-GPL code, go for it! :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment> On Sunday 14 April 2002 23:47, Sam Lantinga wrote:

[…]

SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/
[…]

  • Added native midi support on Linux, using GPL code
    –enable-music-native-midi-gpl

Why GPLed code? What is needed, exactly?

Ok, I’ll look at it. :slight_smile:

Any special requirements? (Like “must play any MIDI file properly”;
“must deal with various non-standard events and meta-events” and the
like. :wink:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Monday 15 April 2002 19:41, Sam Lantinga wrote:

On Sunday 14 April 2002 23:47, Sam Lantinga wrote:
[…]

SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/

[…]

  • Added native midi support on Linux, using GPL code
    –enable-music-native-midi-gpl

Why GPLed code? What is needed, exactly?

I’m not sure. I think a whole bunch of the sequencing code was lifted
from playmidi. Feel free to download it and take a look. If you want
to substitute non-GPL code, go for it! :slight_smile: