diff --git a/SystemSoundLibrary/SoundListViewController.m b/SystemSoundLibrary/SoundListViewController.m index 98ef6af..d66beb1 100644 --- a/SystemSoundLibrary/SoundListViewController.m +++ b/SystemSoundLibrary/SoundListViewController.m @@ -82,7 +82,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; - cell.textLabel.text = [[audioFileList objectAtIndex:indexPath.row] lastPathComponent]; + SystemSoundID soundID; + AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)[audioFileList objectAtIndex:indexPath.row],&soundID); + + + cell.textLabel.text = [NSString stringWithFormat:@"%d: %@",soundID, [[audioFileList objectAtIndex:indexPath.row] lastPathComponent]]; return cell; }