1 /////////////////////////////////////////////////////////////////////////////// 2 // $Id: Sound.hxx,v 1.1 1995/01/08 06:48:32 bmott Exp $ 3 /////////////////////////////////////////////////////////////////////////////// 4 // 5 // Sound.hxx - Sound class 6 // 7 // 8 // Bradford W. Mott 9 // Copyright (C) 1995 10 // January 4,1995 11 // 12 /////////////////////////////////////////////////////////////////////////////// 13 // $Log: Sound.hxx,v $ 14 // Revision 1.1 1995/01/08 06:48:32 bmott 15 // Initial revision 16 // 17 /////////////////////////////////////////////////////////////////////////////// 18 19 #ifndef SOUND_HXX 20 #define SOUND_HXX 21 22 #include "SampleCollection.hxx" 23 24 enum SoundState { Enabled, Disabled }; 25 26 27 class Sound { 28 private: 29 SampleCollection* mySampleCollection; 30 SoundState myState; 31 32 public: 33 // Constructor 34 Sound(SampleCollection* sampleCollection); 35 36 // Destructor 37 virtual ~Sound(); 38 39 // Play the named sample 40 virtual void playSample(char* sampleName); 41 42 // Answer my state state() const43 SoundState state() const { return(myState); } 44 }; 45 #endif 46 47