Changeset 722 for abuse/branches/lol/src/sdlport/sound.h
- Timestamp:
- Sep 26, 2013, 1:18:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/branches/lol/src/sdlport/sound.h
r555 r722 12 12 #define __SOUND_H__ 13 13 14 #if !defined __CELLOS_LV2__ 15 # include <SDL/SDL_mixer.h> 14 #if defined USE_SDL_MIXER 15 # if defined HAVE_SDL_SDL_H 16 # include <SDL/SDL.h> 17 # else 18 # include <SDL.h> 19 # endif 20 # if defined HAVE_SDL_SDL_MIXER_H 21 # include <SDL/SDL_mixer.h> 22 # else 23 # include <SDL_mixer.h> 24 # endif 16 25 #endif 17 26 … … 34 43 35 44 private: 36 #if !defined __CELLOS_LV2__45 #if defined USE_SDL_MIXER 37 46 Mix_Chunk* m_chunk; 38 47 #endif … … 42 51 { 43 52 public: 44 #if !defined __CELLOS_LV2__ 45 char const *name() { return Name; } 46 #endif 47 song(char const *filename); 53 String const &name() { return m_name; } 54 song(String const &filename); 48 55 void play(unsigned char volume=127); 49 56 void stop(long fadeout_time=0); // time in ms … … 53 60 54 61 private: 55 #if !defined __CELLOS_LV2__ 56 char *Name; 57 u nsigned char*data;62 String m_name; 63 #if defined USE_SDL_MIXER 64 uint8_t *data; 58 65 unsigned long song_id; 59 66 Mix_Music* music;
Note: See TracChangeset
for help on using the changeset viewer.