project_files/HedgewarsMobile/Classes/MXAudioPlayerFadeOperation.h
changeset 8441 a00b0fa0dbd7
parent 6659 a6030b32b222
child 12872 00215a7ec5f5
equal deleted inserted replaced
8440:ea4d6a7a2937 8441:a00b0fa0dbd7
    15   BOOL _pauseAfterFade;
    15   BOOL _pauseAfterFade;
    16   BOOL _stopAfterFade;
    16   BOOL _stopAfterFade;
    17   BOOL _playBeforeFade;
    17   BOOL _playBeforeFade;
    18 }
    18 }
    19 
    19 
    20 // The AVAudioPlayer that the volume fade will be applied to. 
    20 // The AVAudioPlayer that the volume fade will be applied to.
    21 // Retained until the fade is completed.
    21 // Retained until the fade is completed.
    22 // Must be set with init method.
    22 // Must be set with init method.
    23 @property (nonatomic, retain, readonly) AVAudioPlayer *audioPlayer; 
    23 @property (nonatomic, retain, readonly) AVAudioPlayer *audioPlayer;
    24 
    24 
    25 // The duration of the volume fade. 
    25 // The duration of the volume fade.
    26 // Default value is 1.0
    26 // Default value is 1.0
    27 @property (nonatomic, assign) NSTimeInterval fadeDuration; 
    27 @property (nonatomic, assign) NSTimeInterval fadeDuration;
    28 
    28 
    29 // The delay before the volume fade begins. 
    29 // The delay before the volume fade begins.
    30 // Default value is 0.0
    30 // Default value is 0.0
    31 @property (nonatomic, assign) NSTimeInterval delay; 
    31 @property (nonatomic, assign) NSTimeInterval delay;
    32 
    32 
    33 // The volume that will be faded to. 
    33 // The volume that will be faded to.
    34 // Default value is 0.0
    34 // Default value is 0.0
    35 @property (nonatomic, assign) float finishVolume; 
    35 @property (nonatomic, assign) float finishVolume;
    36 
    36 
    37 // If YES, audio player will be sent a pause message when the fade has completed. 
    37 // If YES, audio player will be sent a pause message when the fade has completed.
    38 // Default value is NO, however, if finishVolume is 0.0, default is YES
    38 // Default value is NO, however, if finishVolume is 0.0, default is YES
    39 @property (nonatomic, assign) BOOL pauseAfterFade; 
    39 @property (nonatomic, assign) BOOL pauseAfterFade;
    40 
    40 
    41 // If YES, when the fade has completed the audio player will be sent a stop message.
    41 // If YES, when the fade has completed the audio player will be sent a stop message.
    42 // Default value is NO.
    42 // Default value is NO.
    43 @property (nonatomic, assign) BOOL stopAfterFade;
    43 @property (nonatomic, assign) BOOL stopAfterFade;
    44 
    44