Ignore:
Timestamp:
Feb 21, 2011, 6:11:36 PM (10 years ago)
Author:
sam
Message:

Create the SdlApp class to avoid code duplication. Ensure USE_SDL is
tested wherever relevant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/audio.cpp

    r254 r680  
    1515#include <cmath>
    1616
    17 #include <SDL_mixer.h>
     17#if defined USE_SDL
     18#   include <SDL.h>
     19#   include <SDL_mixer.h>
     20#endif
    1821
    1922#include "core.h"
     
    2528void Audio::Setup(int channels)
    2629{
     30#if defined USE_SDL
    2731    Mix_OpenAudio(22050, AUDIO_S16, channels, 1024);
     32#endif
    2833}
    2934
Note: See TracChangeset for help on using the changeset viewer.