Ignore:
Timestamp:
Apr 17, 2011, 10:27:50 AM (10 years ago)
Author:
Sam Hocevar
Message:

sdlport: add music playback support through SDL_Mixer, courtesy of
Jochen Schleu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/sdlport/sound.hpp

    r124 r479  
    1010#ifndef __SOUND_HPP_
    1111#define __SOUND_HPP_
     12
     13#ifdef USE_SDL_MIXER
     14#include <SDL/SDL_mixer.h>
     15#endif
    1216
    1317/* options are passed via command line */
     
    2428  long size;
    2529  void *data;
     30#ifdef USE_SDL_MIXER
     31  Mix_Chunk* chunk;
     32#endif
    2633public :
    2734  sound_effect(char *filename);
     
    3643  unsigned char *data;
    3744  unsigned long song_id;
     45#ifdef USE_SDL_MIXER
     46  Mix_Music* music;
     47  SDL_RWops* rw;
     48#endif
    3849public :
    3950  char const *name() { return Name; }
Note: See TracChangeset for help on using the changeset viewer.