renameSound (soundIndex, newName) {
        const oldName = this.editingTarget.getSounds()[soundIndex].name;
        if (newName !== oldName) {
            this.emit('renameSound*', {oldName: oldName, newName: newName});
        }
        this.editingTarget.renameSound(soundIndex, newName);
        this.emitTargetsUpdate();
    }
/**
     * Rename a sound on the current editing target.
     * @param {int} soundIndex - the index of the sound to be renamed.
     * @param {string} newName - the desired new name of the sound (will be modified if already in use).
     */
Rename a sound on the current editing target.
@param {int} soundIndex - the index of the sound to be renamed.
@param {string} newName - the desired new name of the sound (will be modified if already in use).
Rename a sound on the current editing target . @param { int } soundIndex - the index of the sound to be renamed . @param { string } newName - the desired new name of the sound ( will be modified if already in use ) .
renameSound (soundIndex, newName) {
        const oldName = this.editingTarget.getSounds()[soundIndex].name;
        if (newName !== oldName) {
            this.emit('renameSound*', {oldName: oldName, newName: newName});
        }
        this.editingTarget.renameSound(soundIndex, newName);
        this.emitTargetsUpdate();
    }
renameSound ( soundIndex , newName ) { const oldName = this . editingTarget . getSounds ( ) [ soundIndex ] . name ; if ( newName !== oldName ) { this . emit ( 'renameSound*' , { oldName : oldName , newName : newName } ) ; } this . editingTarget . renameSound ( soundIndex , newName ) ; this . emitTargetsUpdate ( ) ; }
Rename a sound on the current editing target.
Rename a sound on the current editing target .