1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Renames method better to communicate purpose.

This commit is contained in:
Thomas Harte 2018-03-22 09:49:36 -04:00
parent 6419b0e619
commit a3fa9440d1

View File

@ -64,7 +64,7 @@ class MachineDocument:
self.openGLView.delegate = self
self.openGLView.responderDelegate = self
setupClockRate()
setupAudioQueueClockRate()
self.optionsPanel?.establishStoredOptions()
// bring OpenGL view-holding window on top of the options panel
@ -75,10 +75,10 @@ class MachineDocument:
}
func machineSpeakerDidChangeInputClock(_ machine: CSMachine!) {
setupClockRate()
setupAudioQueueClockRate()
}
fileprivate func setupClockRate() {
fileprivate func setupAudioQueueClockRate() {
// establish and provide the audio queue, taking advice as to an appropriate sampling rate
let maximumSamplingRate = CSAudioQueue.preferredSamplingRate()
let selectedSamplingRate = self.machine.idealSamplingRate(from: NSRange(location: 0, length: NSInteger(maximumSamplingRate)))