AudioOutputAgent.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of Micole Architecture
00003  *
00004  * Copyright (C) 2007 Micole partners
00005  *
00006  * Micole Architecture is free software: you can redistribute it 
00007  * and/or modify it under the terms of the GNU Lesser General 
00008  * Public License as published by the Free Software Foundation, 
00009  * either version 3 of the License, or (at your option) any 
00010  * later version.
00011  *
00012  * Micole Architecture is distributed in the hope that it will be 
00013  * useful, * but WITHOUT ANY WARRANTY; without even the implied 
00014  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00015  * PURPOSE.  See the GNU Lesser General Public License for more 
00016  * details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with Micole Architecture.  If not, see
00020  * <http://www.gnu.org/licenses/>.
00021  */
00022 
00023 #ifndef AUDIOOUTPUTAGENT_H
00024 #define AUDIOOUTPUTAGENT_H
00025 
00026 #include <assert.h>
00027 #include <SpatialAudio.h>
00028 #include "micolelib.h"
00029 #include "MicoleAgent.h"
00030 
00031 static const char* PAUSE_ALL = "PAUSE_ALL";
00032 static const char* STOP_ALL = "STOP_ALL";
00033 static const char* RESUME_ALL = "RESUME_ALL";
00034 
00035 enum MICOLELIB_API SoundType {
00036 
00037         PLAY=1,
00038         PLAY_INTERRUPT,
00039         PLAY_INTERRUPT_ALL,
00040         LOOP,
00041         LOOP_INTERRUPT,
00042         LOOP_INTERRUPT_ALL,
00043         PAUSE,
00044         STOP,
00045         RESUME,
00046         
00047 };
00048 
00071 class MICOLELIB_API AudioOutputAgent:public MicoleAgent{
00072 //class AudioOutputAgent:public MicoleAgent{
00073 
00074 
00075 public:
00076         void handleAudioMessage( MicoleBus *app, int argc, const char **argv);
00077         void handleStopPauseAllMessage(MicoleBus *app, int argc, const char **argv);
00078         AudioOutputAgent(const string baseDir);
00079         ~AudioOutputAgent();
00080 
00081 protected:
00082         AudioDevice* device;
00083         string soundBase;
00084         bool stopped;
00085 
00086 };
00087 
00088 #endif

Generated on Tue Oct 16 17:10:42 2007 for Micole by  doxygen 1.4.7