cocos2d-x  3.0rc1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CDAudioInterruptTargetGroup Class Reference

Container for objects that implement audio interrupt protocol i.e. More...

#import <CocosDenshion.h>

Inheritance diagram for CDAudioInterruptTargetGroup:
<CDAudioInterruptProtocol> <CDAudioInterruptProtocol>

Instance Methods

(void) - addAudioInterruptTarget:
(void) - addAudioInterruptTarget:
var - addAudioInterruptTarget:
local - addAudioInterruptTarget:
- Instance Methods inherited from <CDAudioInterruptProtocol>
(BOOL) - mute
 Is audio mute. More...
 
(void) - setMute:
 If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. More...
 
(BOOL) - enabled
 Is audio enabled. More...
 
(void) - setEnabled:
 If NO then all audio is stopped and any calls to start new audio will be ignored. More...
 
(BOOL) - mute
 Is audio mute. More...
 
(void) - setMute:
 If YES then audio is silenced but not stopped, calls to start new audio will proceed but silently. More...
 
(BOOL) - enabled
 Is audio enabled. More...
 
(void) - setEnabled:
 If NO then all audio is stopped and any calls to start new audio will be ignored. More...
 

Protected Attributes

BOOL mute_
BOOL enabled_
NSMutableArray * children_
var children_
local children_

Detailed Description

Container for objects that implement audio interrupt protocol i.e.

they can be muted and enabled. Setting mute and enabled for the group propagates to all children. Designed to be used with your CDSoundSource objects to get them to comply with global enabled and mute settings if that is what you want to do.

Method Documentation

- (void) addAudioInterruptTarget: (NSObject< CDAudioInterruptProtocol > *)  interruptibleTarget
- (void) addAudioInterruptTarget: var  interruptibleTarget
- (void) addAudioInterruptTarget: local  interruptibleTarget
- (void) addAudioInterruptTarget: (NSObject< CDAudioInterruptProtocol > *)  interruptibleTarget
- (void) addAudioInterruptTarget: var  interruptibleTarget
- (void) addAudioInterruptTarget: local  interruptibleTarget

Member Data Documentation

- (NSMutableArray *) children_
protected
var children_
protected
local children_
protected
- (BOOL) enabled_
protected
var enabled_
protected
local enabled_
protected
- (BOOL) mute_
protected
var mute_
protected
local mute_
protected

The documentation for this class was generated from the following files: