저는 음악 앱을 제작 중이므로 어떤 latancy도 승인 할 수 없습니다.감동에 잘 응답합니다.
나는 터치를 처리하기 위해 사랑하는 touchesBegan/Moved/Ended를 사용하고 있습니다. 모든 것이 잘되고 있고, 나는 (AudioUnit을 사용하여) 톤을 합성하고 (GLKit을 사용하여) 손가락 아래에서 반짝임을 보여 주었다. 그리고 4-7 노트/터치가 똑같이 타격을 가하면 잘 동작한다. 시간, 그때 너트하고 애플 리케이션 붙어 있습니다.
내가 GLKit 인터페이스와 인터페이스를 사용하여 많은 작업을하고 있고 그것을 고치는 방법이 필요하다는 것을 이해했다.
내 코드는 다음과 같이 주위에 내장되어 있습니다 :
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
for(UITouch *touch in touches)
{
CGPoint lePoint = [touch locationInView:self.view];
doing some calculataions for synth engine.......
actually making the sound avilable to play through the interface........
then I start to create the sprite object for the glow
attaching it to the nsarray of the shapes
//rejoycing in the awesomness of the sound
adding the touch to the active touches array
}
}
은 내가 touchesEnded에서 정확한 역을한다.
내 시도에서 더 잘 작동하도록 GLKit에 GCD를 사용 했으므로 비동기 적으로 발생합니다. 시간이 흐르면서 작동하는 것을 보았습니다. touchesEnded가 그것을 제거하려고 시도했을 때 배열에서 t.
누군가가 도와 주면 감사 할 것입니다.