# Unigine::AnimationChannelSound Class (CPP) **Header:** #include **Inherits from:** AnimationChannel This channel plays a sound on the sound source it is bound to. Each key names a sound file, and the playback starts at the moment of the key, so the time inside the sound is counted from there. Pitch, trimming and fades are shaped by the playback property curves of the [AnimationChannel](../../../../api/library/animations/timeline/class.animationchannel_cpp.md) base class rather than by a value curve of this one. ## AnimationChannelSound Class --- ## AnimationChannelSound ( AnimParams::PARAM param ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. ## AnimationChannelSound ( AnimParams::PARAM param , int param_index ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. - *int* **param_index** - Slot of the parameter for parameters that come as an array, such as a surface or a bone. ## AnimationChannelSound ( AnimParams::PARAM param , const char * param_name ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *AnimParams::PARAM* **param** - Parameter to be animated by the channel. Identifiers are looked up through the [Animations](../../../../api/library/animations/class.animations_cpp.md) class rather than written out by hand. - *const char ** **param_name** - Name that addresses the parameter when a number is not enough, such as the name of a property parameter or of a surface. ## AnimationChannelSound ( const char * param ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. ## AnimationChannelSound ( const char * param , int param_index ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. - *int* **param_index** - Slot of the parameter for parameters that come as an array, such as a surface or a bone. ## AnimationChannelSound ( const char * param , const char * param_name ) Constructor. Creates a channel that animates the specified parameter. ### Arguments - *const char ** **param** - Name of the parameter to be animated by the channel. - *const char ** **param_name** - Name that addresses the parameter when a number is not enough, such as the name of a property parameter or of a surface. ## void assignFrom ( const Ptr < AnimationChannelSound > & channel ) Copies the content of the specified channel into this one. ### Arguments - *const [Ptr](../../../../api/library/common/class.ptr_cpp.md)<[AnimationChannelSound](../../../../api/library/animations/timeline/class.animationchannelsound_cpp.md)> &* **channel** - Source channel to copy the content from.