Frisker
11-20-2005, 04:15 PM
As the topic says.. how do i play multiple sounds at once without any directsound?
Play multiple sound at onceFrisker 11-20-2005, 04:15 PM As the topic says.. how do i play multiple sounds at once without any directsound? Iceplug 11-20-2005, 04:43 PM Without DirectSound (?), you can use PlaySound API: PlaySound http://iceplug.vwebservices.com/cnplat4.htm and the mciSendString API: mciSendString http://iceplug.vwebservices.com/cnplat8.htm together at the same time to play 2 wave files at once... . Perhaps you can throw in a DirectXAudioVideoPlayback as well to get 3. :) Frisker 11-20-2005, 06:06 PM Without DirectSound (?), you can use PlaySound API: PlaySound http://iceplug.vwebservices.com/cnplat4.htm and the mciSendString API: mciSendString http://iceplug.vwebservices.com/cnplat8.htm together at the same time to play 2 wave files at once... . Perhaps you can throw in a DirectXAudioVideoPlayback as well to get 3. :) Wow.. that was an special solution :S, But the problem is that i dont know how many sounds i want to play at once.. if someone shoot, jump and kill someone with a shoot previous fired and so on.. Iceplug 11-21-2005, 07:54 AM As far as I know, without DirectSound, you're just limited to as many different playing methods you can find. What you'd want to consider is to take the bullet and work with two sounds: one for sound effects and one for music... or one for short sound effects (gunshots) and one for long sound effects (explosions). by_m 11-21-2005, 04:55 PM Any real reason you don't want directsound? I used to not want to get into it, but it's really a piece of cake, not to mention that it's perfect for what you described. It makes things a lot easier. I learned it from this link if you are interested: http://gpwiki.org/index.php/DirectX:DirectSound:Tutorials:VBNET:DX9:Playing_Sounds (thanks Machaira). Frisker 11-22-2005, 02:42 PM Any real reason you don't want directsound? I used to not want to get into it, but it's really a piece of cake, not to mention that it's perfect for what you described. It makes things a lot easier. I learned it from this link if you are interested: http://gpwiki.org/index.php/DirectX:DirectSound:Tutorials:VBNET:DX9:Playing_Sounds (thanks Machaira). Well.. the main reason is i didnt use any other directx stuff in the game.. and it feels just wrong to just use directsound.. but i suppose you'r right, the sound function i use now takes half of the game cpu too by_m 11-22-2005, 06:34 PM Yeah, I know what you mean, I'm still not using DirectAnythingElse, but DirectSound is just too easy to pass up. Frisker 11-23-2005, 12:21 AM Yeah, I know what you mean, I'm still not using DirectAnythingElse, but DirectSound is just too easy to pass up. Well I've decided to use DirectSound, afterall i got a book that describes it 2, thx for your help :) |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum