Skip to content
master
Switch branches/tags
Code

Latest commit

Music's destructor call's stop(), which in turn calls onSeek.
For CSFML, this requires the CallbackStream to stay alive until that point.

In C++, destructors for fields are called in reverse declaration order.
We swap the order of the fields, putting the Music after the
CallbackStream, so it gets destroyed before it.
317f58f

Git stats

Files

Permalink
Failed to load latest commit information.

SFML logo

CSFML - Simple and Fast Multimedia Library for C

SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is originally written in C++, and this project is its official binding for the C language.

Authors

Download

You can get the latest official release on SFML website. You can also get the current development version from the Git repository.

Learn

There is no tutorial for CSFML, but since it's a binding you can use the C++ resources:

Of course, you can also find the CSFML API documentation in the SDK.

Building

Set SFML_DIR to a directory containing the SFMLConfig.cmake file, usually located at lib/cmake/SFML.

Contribute

SFML and CSFML are open-source projects, and they need your help to go on growing and improving. Don't hesitate to post suggestions or bug reports on the forum, or post new bugs/features requests on the issue tracker. You can even fork the project on GitHub, maintain your own version and send us pull requests periodically to merge your work.