deleteSound (soundIndex) {
        const target = this.editingTarget;
        this.emit('deleteSound*', {name: target.getSounds()[soundIndex].name});
        const deletedSound = this.editingTarget.deleteSound(soundIndex);
        if (deletedSound) {
            this.runtime.emitProjectChanged();
            const restoreFun = () => {
                target.addSound(deletedSound);
                this.emitTargetsUpdate();
            };
            return restoreFun;
        }
        return null;
    }
/**
     * Delete a sound from the current editing target.
     * @param {int} soundIndex - the index of the sound to be removed.
     * @return {?Function} A function to restore the sound that was deleted,
     * or null, if no sound was deleted.
     */
Delete a sound from the current editing target.
@param {int} soundIndex - the index of the sound to be removed.
@return {?Function} A function to restore the sound that was deleted,
or null, if no sound was deleted.
Delete a sound from the current editing target . @param { int } soundIndex - the index of the sound to be removed . @return { ?Function } A function to restore the sound that was deleted or null if no sound was deleted .
deleteSound (soundIndex) {
        const target = this.editingTarget;
        this.emit('deleteSound*', {name: target.getSounds()[soundIndex].name});
        const deletedSound = this.editingTarget.deleteSound(soundIndex);
        if (deletedSound) {
            this.runtime.emitProjectChanged();
            const restoreFun = () => {
                target.addSound(deletedSound);
                this.emitTargetsUpdate();
            };
            return restoreFun;
        }
        return null;
    }
deleteSound ( soundIndex ) { const target = this . editingTarget ; this . emit ( 'deleteSound*' , { name : target . getSounds ( ) [ soundIndex ] . name } ) ; const deletedSound = this . editingTarget . deleteSound ( soundIndex ) ; if ( deletedSound ) { this . runtime . emitProjectChanged ( ) ; const restoreFun = ( ) => { target . addSound ( deletedSound ) ; this . emitTargetsUpdate ( ) ; } ; return restoreFun ; } return null ; }
Delete a sound from the current editing target.
Delete a sound from the current editing target .