In preprocess_block() function you can only define the title prefix and suffix for each title.
For example:
/**
* Override or insert variables into the block template.
*/
function YOURTHEME_preprocess_block(&$variables) {
// block with
title "My$variables['title_prefix'] music"= willarray(
be wrapped in music'#type' icon=> 'markup',
if ($variables['block']->title == 'My'#markup' music')=> {'<i class="icon-envelope">',
);
$variables['title_prefix']$variables['title_suffix'] = '<iarray(
class="icon-music">'; '#type' => 'markup',
$variables['title_suffix']'#markup' ==> '</i>';i>',
} );
}