75d24c15
yangbin
123
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
//
// DefaultAlert.h
// FMP_Proj
//
// Created by betty on 14-7-7.
// Copyright (c) 2014年 betty. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import <AVFoundation/AVFoundation.h>
#import "IAlert.h"
@interface DefaultAlert : IAlert<AVAudioPlayerDelegate>{
CFURLRef soundFileURLRef;
SystemSoundID soundFileObject;
NSTimer *alertTimer;
AVAudioSession *audioSession;
AVAudioPlayer *avAudioPlayer;
}
@property (readwrite) CFURLRef soundFileURLRef;
@property (readonly) SystemSoundID soundFileObject;
//-(void) playSystemSound;
-(void)playAlertSound;
-(void) stopAlert;
//-(Boolean) isPlay;
@end
|