problem with directx SetCooperativeLevel

yes because older version support more plateform
i mean it can be run on older DX8 as well as Any new version DX9 or Dxfuture

can u tell me solution in DX9 Plz.

i use following code for DX9, but i am unable to play wav1 on sound card 1 & wav2 on soundcard2

yes i am facing following 2 problem
1) how to play two wav on two different Soundcards or   (soundcard  & modem)
2) and the above problem of setCooprative level

i can use DX 9 if i found solution for both the issue.

i uses following code for DX9 ( can't solve problem#1 using Audiopath )


start code ----------------

Dim dx As New DirectX8
Dim dmLoader As DirectMusicLoader8
Dim dmPerformance As DirectMusicPerformance8
Dim waveSeg As DirectMusicSegment8
 
Private Sub Form_Load()
 
  Dim dmParams As DMUS_AUDIOPARAMS
  Set dmLoader = dx.DirectMusicLoaderCreate
 
  Set dmPerformance = dx.DirectMusicPerformanceCreate

  dmPerformance.InitAudio Me.hWnd, DMUS_AUDIOF_ALL, dmParams, Nothing, _
      DMUS_APATH_SHARED_STEREOPLUSREVERB, 128
 
  Set waveSeg = dmLoader.LoadSegment("test.wav")
  waveSeg.Download dmPerformance
 
End Sub
 
Private Sub btnPlay_Click()
  dmPerformance.PlaySegmentEx waveSeg, DMUS_SEGF_REFTIME, 0
End Sub

end code ------------



Answer this question

problem with directx SetCooperativeLevel

  • problem with directx SetCooperativeLevel