Ignore:
Timestamp:
06/15/09 06:16:52 (15 years ago)
Author:
Nicholas Riley
Message:

Minimally convert media playback to QTKit. Some direct QuickTime access still needs migrating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSMediaAlert.m

    r364 r543  
    1010#import "NSDictionary-NJRExtensions.h"
    1111#import "NJRSoundManager.h"
    12 #import <QuickTime/Movies.h>
    1312
    1413// property list keys
    1514static NSString * const PLAlertRepetitions = @"times"; // NSString
    1615static NSString * const PLAlertOutputVolume = @"volume"; // NSNumber
     16
     17static const float PSMediaAlertNoVolume = 0;
    1718
    1819@implementation PSMediaAlert
     
    5051        outputVolume = volume;
    5152    else
    52         outputVolume = kNoVolume;
     53        outputVolume = PSMediaAlertNoVolume;
    5354}
    5455
     
    5960    NSMutableDictionary *plAlert = [[super propertyListRepresentation] mutableCopy];
    6061    [plAlert setObject: [NSNumber numberWithUnsignedShort: repetitions] forKey: PLAlertRepetitions];
    61     if (outputVolume != kNoVolume) {
     62    if (outputVolume != PSMediaAlertNoVolume) {
    6263        [plAlert setObject: [NSNumber numberWithFloat: outputVolume] forKey: PLAlertOutputVolume];
    6364    }
Note: See TracChangeset for help on using the changeset viewer.