|
|
|
|
|
|
|
|
AudioServicesDisposeSystemSoundID(sound); |
|
|
AudioServicesDisposeSystemSoundID(sound); |
|
|
|
|
|
|
|
|
if (loudness == 0) { |
|
|
if (loudness == 0) { |
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick.caf"]), &sound); |
|
|
|
|
|
|
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Tick/tick.caf"]), &sound); |
|
|
|
|
|
|
|
|
} else if (loudness == 1) { |
|
|
} else if (loudness == 1) { |
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick2.caf"]), &sound); |
|
|
|
|
|
|
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Tick/tick2.caf"]), &sound); |
|
|
|
|
|
|
|
|
} else if (loudness == 2) { |
|
|
} else if (loudness == 2) { |
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Application Support/Tick/tick3.caf"]), &sound); |
|
|
|
|
|
|
|
|
AudioServicesCreateSystemSoundID((CFURLRef) CFBridgingRetain([NSURL fileURLWithPath:@"/Library/Tick/tick3.caf"]), &sound); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|