00001 // ** LICENSE BLOCK ** 00002 // 00003 // AMSoundListener.h 00004 // aria 00005 // 00006 // Created by Yohan Lasorsa on 18/08/09. 00007 // Copyright 2009 INRIA, Team WAM. All rights reserved. 00008 // 00009 00010 #import "AMSound.h" 00011 #import <Foundation/Foundation.h> 00012 00013 00014 // to avoid import loop errors 00015 @class AMSound; 00016 00020 enum AMSoundEventType { 00021 AM_SND_STARTED = 0, // The sound started 00022 AM_SND_STOPPED, // The sound was stopped 00023 AM_SND_ENDED, // The sound ended 00024 AM_SND_SETACTIVE_REQUEST // A request was to set this sound as the active one in its parent chunk 00025 }; 00026 00030 @protocol AMSoundListener 00031 00038 - (void)soundUpdate:(AMSound *)_sound eventType:(AMSoundEventType)_type eventData:(void *)_data; 00039 00040 @end