Ignore:
Timestamp:
Sep 13, 2011, 7:19:11 PM (9 years ago)
Author:
sam
Message:

build: fix Win64 compilation with mingw64, using an updated SDL build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sample.cpp

    r758 r950  
    1818#include <cstring>
    1919
    20 #if defined USE_SDL
     20#if defined USE_SDL_MIXER
    2121#   include <SDL.h>
    2222#   include <SDL_mixer.h>
     
    4040private:
    4141    char *name, *path;
    42 #if defined USE_SDL
     42#if defined USE_SDL_MIXER
    4343    Mix_Chunk *chunk;
    4444#endif
     
    5656    sprintf(data->name, "<sample> %s", path);
    5757
    58 #if defined USE_SDL
     58#if defined USE_SDL_MIXER
    5959    data->chunk = Mix_LoadWAV(path);
    6060    if (!data->chunk)
     
    7171Sample::~Sample()
    7272{
    73 #if defined USE_SDL
     73#if defined USE_SDL_MIXER
    7474    Mix_FreeChunk(data->chunk);
    7575#endif
     
    9090void Sample::Play()
    9191{
    92 #if defined USE_SDL
     92#if defined USE_SDL_MIXER
    9393    Mix_PlayChannel(-1, data->chunk, 0);
    9494#endif
Note: See TracChangeset for help on using the changeset viewer.