flat assembler
Message board for the users of flat assembler.
Index
> Windows > Play 2 .wav files at the same time |
Author |
|
vid 18 Nov 2006, 11:30
second question: you create console program, and use ReadConsole. For having it easier to parse the answer, use my FASMLIB. It handles some things for you (like conversion of string to number etc).
if you want windows GUI dialog, then AFAIK you have to create it yourself. But it will be just window containing editbox, not that big problem. (And even then you can use FASMLIB to convert numbers. In later version it will have routines to completely parse text in printf/scanf manner) |
|||
18 Nov 2006, 11:30 |
|
Quantum 18 Nov 2006, 14:56
eskizo wrote: I tried using threads but it does not work. winmm!PlaySound can play only 1 wav at a time. You can use DirectSound to play 2 or more sound files simultaneously, apply effects, etc. You can find some examples in msdn and convert them to asm (not very hard). Or you can use a lib, like fmod.dll, if you don't want to use DirectSound... directly. |
|||
18 Nov 2006, 14:56 |
|
Bambo 07 Jun 2007, 17:56
Try mciSendString.If you don't tell it to seperate the files it plays them together.At least in VB..
_________________ Please, excuse my english. |
|||
07 Jun 2007, 17:56 |
|
karl 21 Jul 2007, 16:39
also try wavemix, microsoft's solution to this problem. http://www.vbexplorer.com/VBExplorer/sound2.asp
totally sucks. you can't do sound properly without directx. apparently there is a latency issue with wavemix: http://www.compuphase.com/wavemix.htm hrmf. |
|||
21 Jul 2007, 16:39 |
|
karl 21 Jul 2007, 16:43
htmf. doesn't even seem to work properly. at this this example doesn't: http://www.programmersheaven.com/download/6794/download.aspx
not really... switches from one channel to another to accomodate multiple sounds. and cuts sound out too... arrghh! |
|||
21 Jul 2007, 16:43 |
|
karl 21 Jul 2007, 16:46
how on earth did games work before directx??
|
|||
21 Jul 2007, 16:46 |
|
karl 21 Jul 2007, 16:54
oo, this is good: http://www.geocities.com/SiliconValley/Way/3390/mnoise.html
summary: without directx you get bad audio (8-bit) and latency (delay from call and actual sound output). |
|||
21 Jul 2007, 16:54 |
|
chaoscode 22 Jul 2007, 03:09
what about mixing the sound self?
use the valuse and add them, or sth else... (sin cos and these math things...) |
|||
22 Jul 2007, 03:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.