Microsoft DirectX 8.0 (Visual Basic) |
オーディオ アプリケーションを正常に終了するには、次の 3 つの主な手順を実行する必要がある。
サンプル アプリケーション内の次のプロシージャは、DirectX Audio の終了処理を行う。
Private Sub Form_Unload(Cancel As Integer) If Not (seg Is Nothing) Then dmp.StopEx dmp.GetDefaultAudioPath, 0, 0 End If Set seg = Nothing dmp.CloseDown Set dmp = Nothing Set dml = Nothing Set dx = Nothing End Sub