Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Problem with Direct Audio

This topic is 5895 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having a problem trying to get 3D audio up and working. I''m trying to obtain a Listener interface from a 3D Audio path, but so far no joy. Heres how I''m creating the path:
	// The 3D Audio Path

	IDirectMusicAudioPath8* m_p3DAudioPath;


	// Create the 3D Audio Path

	r = g_performance->CreateStandardAudioPath( 
		DMUS_APATH_DYNAMIC_3D,      // Path type.

		64,                         // Number of performance channels.

		TRUE,                       // Activate now.

		&m_p3DAudioPath             // Pointer that receives audiopath.

Up to here it works but:

	// Listener interface

	IDirectSound3DListener8* m_pDSListener;

	r = m_p3DAudioPath->GetObjectInPath( DMUS_PCHANNEL_ALL, 
									 (LPVOID*) &m_pDSListener );
fails. I''m new to Direct Audio, so it could be something simple, but I''ve got ordinary audio segments playing so I dont know... Steve.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!