DirectMusic DirectMusic C++ 샘플 Play Multi 샘플   [목차열람] [주소복사] [슬롯비우기]
Play Multi 샘플
 
Microsoft DirectX 9.0

Play Multi 샘플

Play Multi 샘플에서는, 복수의 세그먼트(segment)를 동시에 연주할 방법이 나타나고 있다. 1 개의 세그먼트(segment)를 1차 세그먼트(segment)로서 연주해, 다른 세그먼트(segment)를 2차 세그먼트(segment)로서 연주한다.

패스

소스 :(SDK 루트) \Samples\C++\DirectMusic\PlayMulti

실행 가능 파일 :(SDK 루트) \Samples\C++\DirectMusic\Bin

사용자가이드

디폴트의 세그먼트(segment)를 사용한다. 또는,[Browse] 를 사용해 다른 세그먼트(segment)를 선택한다. 2차 세그먼트(segment)의 적절한 큐에 필요한 리듬 정보가 포함되도록, 1차 세그먼트(segment)는 스타일 베이스가 아니면 안된다.

1차 세그먼트(segment)를 연주한다. 2차 세그먼트(segment)에 대한 연주 경계를 선택해, 2차 세그먼트(segment)를 연주한다. 2차 세그먼트(segment)가 지정한 경계에서 연주를 시작 하는 것에 주의한다.

[Controlling Segment] 를 선택해, 2차 세그먼트(segment)를 제어 세그먼트(segment)로 한다. 이 조작에 의해 영향이 있는 것은, 2차 세그먼트(segment)에 뮤트 트랙, 커멘드 트랙, 템포 트랙, 또는 코드 트랙이 있는 경우 뿐인, 1차 세그먼트(segment)와는 다른 템포의 2차 세그먼트(segment)를 로드해, 제어 세그먼트(segment)로서 연주해 본다. 1차 세그먼트(segment)의 템포가, 2차 세그먼트(segment)의 템포에 맞추어 변화한다.

프로그래밍 메모

IDirectMusicPerformance8::PlaySegmentEx 에 대한 플래그는 OnPlay 함수로 설정되어, 샘플 프레임워크(framework)의 CMusicSegment::Play 에게 건네진다.

참조

↑TOP