#import #import typedef enum { TGAudioSessionTypePlayVoice, TGAudioSessionTypePlayMusic, TGAudioSessionTypePlayVideo, TGAudioSessionTypePlayAndRecord, TGAudioSessionTypePlayAndRecordHeadphones } TGAudioSessionType; typedef enum { TGAudioSessionRouteChangePause, TGAudioSessionRouteChangeResume } TGAudioSessionRouteChange; @interface TGAudioSessionManager : NSObject + (TGAudioSessionManager *)instance; - (id)requestSessionWithType:(TGAudioSessionType)type interrupted:(void (^)())interrupted; - (void)cancelCurrentSession; + (SSignal *)routeChange; @end