I want to add the sound to my program. All the objects have been drawn with OpenGL. As i use from the DirectSound to play the 3D sounds, i can't use from the OpenGL matrices. But it seems that i can get the information of the model-view matrix to specify the sound position(?)As an example assume that i have used from the following code to draw my object:
glRotatef( angle, 0.0f, 1.0f, 0.0f );
glTranslatef( xpos, ypos, zpos );
Now i want to add a sound to my object. When my object is transformed, i should find the new position to insert my sound. So how can i find the new position of my object to specify the position of my sound?