mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +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.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)))
|
||||
|
Loading…
Reference in New Issue
Block a user