Rewrite SBSoundViewController in Swift.

This commit is contained in:
Damiano Galassi committed 2017-12-05 14:07:49 +01:00
1 parent 6c5fec66d0
commit 32791b4d5c
7 files changed
+71 -236

No files matched your search

+1 -4
View File
@@ -12,7 +12,6 @@
#import "SBMovieViewController.h"
#import "SBVideoViewController.h"
#import "SBSoundViewController.h"
#import <MP42Foundation/MP42File.h>
#import <MP42Foundation/MP42FileImporter.h>
@@ -719,9 +718,7 @@ static NSDictionary *_detailMonospacedAttr;
[controller setTrack:track];
[controller setFile:self.mp4];
} else if ([track isKindOfClass:[MP42AudioTrack class]]) {
controller = [[SBSoundViewController alloc] initWithNibName:@"SoundView" bundle:nil];
[controller setSoundTrack:track];
[controller setFile:self.mp4];
controller = [[SBSoundViewController alloc] initWithMp4:self.mp4 track:track];
} else {
controller = [[EmptyViewController alloc] initWithNibName:@"EmptyView" bundle:nil];
}