<commit_before>Rust-SDL2_mixer
=============

[![Build Status](https://travis-ci.org/andelf/rust-sdl2_mixer.svg?branch=master)](https://travis-ci.org/andelf/rust-sdl2_mixer)
[![crates.io](http://meritbadge.herokuapp.com/sdl2_mixer)](https://crates.io/crates/sdl2_mixer)

Rust bindings for SDL2_mixer.

## Overview

Rust-SDL2_mixer is a library for talking to the new SDL2_mixer library from Rust.

Rust-SDL2_mixer uses the MIT licence.

## Requirements

* [Rust-SDL2](https://github.com/AngryLawyer/rust-sdl2)
* SDL2_mixer development libraries
* Latest stable Rust master

#### OSX

    brew install sdl2_mixer
    
#### Windows

1. Download mingw development libraries from https://www.libsdl.org/projects/SDL_mixer/
(`SDL2_mixer-devel-2.0.x-mingw.tar.gz`)
2. Unpack to a folder of your choosing (You can delete it afterwards).
3. Copy all lib files from
    > SDL2_mixer-2.0.x\x86_64-w64-mingw32\lib\

    to (for Rust 1.6 and above) 
    > C:\Program Files\Rust\\**lib**\rustlib\x86_64-pc-windows-gnu\lib

    or to (for Rust versions 1.5 and below)
    > C:\Program Files\Rust\\**bin**\rustlib\x86_64-pc-windows-gnu\lib
    
    or to your library folder of choice, and ensure you have a system environment variable of
    > LIBRARY_PATH = C:\your\rust\library\folder

	For Multirust Users, this folder will be in
	> C:\Users\{Your Username}\AppData\Local\.multirust\toolchains\{current toolchain}\lib\rustlib\x86_64-pc-windows-gnu\lib
4. Copy `SDL2_mixer.dll` and `smpeg2.dll` from <commit_msg>Provide full brew install instructions for needed extra libraries.<commit_after>Rust-SDL2_mixer
=============

[![Build Status](https://travis-ci.org/andelf/rust-sdl2_mixer.svg?branch=master)](https://travis-ci.org/andelf/rust-sdl2_mixer)
[![crates.io](http://meritbadge.herokuapp.com/sdl2_mixer)](https://crates.io/crates/sdl2_mixer)

Rust bindings for SDL2_mixer.

## Overview

Rust-SDL2_mixer is a library for talking to the new SDL2_mixer library from Rust.

Rust-SDL2_mixer uses the MIT licence.

## Requirements

* [Rust-SDL2](https://github.com/AngryLawyer/rust-sdl2)
* SDL2_mixer development libraries
* Latest stable Rust master

#### OSX

```bash
    brew install sdl2_mixer --with-flac --with-fluid-synth --with-libmikmod --with-libmodplug --with-libvorbis --with-smpeg2
```
    
#### Windows

1. Download mingw development libraries from https://www.libsdl.org/projects/SDL_mixer/
(`SDL2_mixer-devel-2.0.x-mingw.tar.gz`)
2. Unpack to a folder of your choosing (You can delete it afterwards).
3. Copy all lib files from
    > SDL2_mixer-2.0.x\x86_64-w64-mingw32\lib\

    to (for Rust 1.6 and above) 
    > C:\Program Files\Rust\\**lib**\rustlib\x86_64-pc-windows-gnu\lib

    or to (for Rust versions 1.5 and below)
    > C:\Program Files\Rust\\**bin**\rustlib\x86_64-pc-windows-gnu\lib
    
    or to your library folder of choice, and ensure you have a system environment variable of
    > LIBRARY_PATH = C:\your\rust\library\folder

	For Multirust Users, this folder will be in
	> C:\Users\{Your Username}\AppData\Local\.multirust\toolchains\{current toolchain}\lib\rustlib\x86_64-pc-windows-gnu\lib
4. Copy `SDL2_mixer.dll` and `smpeg2.dll` from 
{'fraction_non_alphanumeric': 0.13978494623655913, 'fraction_numerical': 0.031309297912713474, 'mean_word_length': 3.9191290824261276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6009574', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1148, 'n_words': 259}