|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Using DirectX Audio 8 |
|
![]() masonium Member since: 7/26/2001 From: IN, USA |
||||
|
|
||||
| I'd really like some feedback on this article so that it will help me make better articles in the future. No, HTML is not an OO language. |
||||
|
||||
![]() Sulgurth Member since: 2/10/2001 From: USA |
||||
|
|
||||
| This article reads well, although similar to the DirectX documentation. The more experience you get with writing these, the better they become, keep it up. I have a question, how do we alter the volume of the segments, and play multiple segments similtaniously? Thank you. |
||||
|
||||
![]() granat Member since: 1/1/2000 From: Denmark |
||||
|
|
||||
| I needed information on how to load the wav myself and pass a pointer instead of letting DAudio load the sound. This is useful if you have you own resource file. |
||||
|
||||
![]() Sphet Member since: 9/16/1999 From: Vancouver, Canada |
||||
|
|
||||
| I am curious why you used the DirectMusic objects for sound effect manipulation instead of the DirectSound buffer objects. What are the pros and cons of this approach? |
||||
|
||||
![]() masonium Member since: 7/26/2001 From: IN, USA |
||||
|
|
||||
| Sulgurth: Playing multiple segments is as simple as making multiple calls to PlaySegmentEx with different IDirectMusicSegments. You can change the volume with a call to IDirectSoundBuffer::SetVolume, with the only parameter being the volume in hundreths of decibels. granat: You need to create a DMUS_OBJECTDESC object and fill out the data in it after getting a pointer to your data and resource. Here's an example:
I haven't tried it out, but it should work. No, HTML is not an OO language. |
||||
|
||||
![]() Guardian_Light Member since: 7/22/2000 From: Ontario, Canada |
||||
|
|
||||
| To play multiple segements at the same instance, you actually need to use a secondary buffer flag setting. Example: PlaySegment(segm,DMUS_SEGF_DEFAULT|DMUS_SEGF_SECONDARY,0,NULL); If all that matters is what you get in the end, why go through life? ~Michael Sikora |
||||
|
||||
![]() masonium Member since: 7/26/2001 From: IN, USA |
||||
|
|
||||
quote: Thanks, learn something new every day. I've gotten a couple of emails about a typo in the article: all of the CLSID_IDirect*** identifiers should just be CLSID_Direct***. I must've gotten confused with IIDs while I was making it or something. My bad. No, HTML is not an OO language. Edited by - masonium on February 8, 2002 12:43:04 AM |
||||
|
||||
![]() Greg K Member since: 9/20/2001 From: Canada |
||||
|
|
||||
| A good hint for anyone writing tutorials is that it is CRUCIAL that you spell things correctly. Typo's are not acceptable. If you are writing a letter to me and spell my name wrong I don't care because I know my name. If you are teaching me how to program DX Audio and spell CLSID_DirectMusicPerformance as CLSID_IDirectMusicPerformacnce I may have to shoot you. So, just make sure you type it correctly. A good backup plan would be to make a demo prog that demonstrates the lesson. That way, even if someone can't get the code to work then they can get your sample project. -Greg Koreman |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| how to make the ivideowindow loop on the video file ? there are run(), stop(), pause() ... but the run() method stop a the end of the file . thanks for help |
||||
|
||||
![]() fyrebugg Member since: 6/19/2002 From: USA |
||||
|
|
||||
| Anonymous Poster: The video feed doesn't restart when you call Run() after it has already been run, you have to RenderFile() all over again to restart it. You need to query the filter graph for a pointer to an IMediaEvent interface. Then you can handle messages like when the video has completed, in which case you can run the video over again if you want it to loop. By the way...how did this go from DirectX Audio to DirectShow |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
Quote: He's right. |
||||
|
||||
![]() Daaark Member since: 8/1/2001 From: Ottawa, On, Canada |
||||
|
|
||||
Quote:This needs to be fixed. I couldn't even find the right declarations to the datatypes on MSDN because I didn't know the proper spelling. It was the quoted post that eventually helped me out. This article should be fixed. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|