mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 05:29:23 +00:00
Renames method better to communicate purpose.
This commit is contained in:
parent
6419b0e619
commit
a3fa9440d1
@ -64,7 +64,7 @@ class MachineDocument:
|
|||||||
self.openGLView.delegate = self
|
self.openGLView.delegate = self
|
||||||
self.openGLView.responderDelegate = self
|
self.openGLView.responderDelegate = self
|
||||||
|
|
||||||
setupClockRate()
|
setupAudioQueueClockRate()
|
||||||
self.optionsPanel?.establishStoredOptions()
|
self.optionsPanel?.establishStoredOptions()
|
||||||
|
|
||||||
// bring OpenGL view-holding window on top of the options panel
|
// bring OpenGL view-holding window on top of the options panel
|
||||||
@ -75,10 +75,10 @@ class MachineDocument:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func machineSpeakerDidChangeInputClock(_ machine: CSMachine!) {
|
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
|
// establish and provide the audio queue, taking advice as to an appropriate sampling rate
|
||||||
let maximumSamplingRate = CSAudioQueue.preferredSamplingRate()
|
let maximumSamplingRate = CSAudioQueue.preferredSamplingRate()
|
||||||
let selectedSamplingRate = self.machine.idealSamplingRate(from: NSRange(location: 0, length: NSInteger(maximumSamplingRate)))
|
let selectedSamplingRate = self.machine.idealSamplingRate(from: NSRange(location: 0, length: NSInteger(maximumSamplingRate)))
|
||||||
|
Loading…
Reference in New Issue
Block a user