Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfstream newbie, it's hurting Pin
7-Mar-01 22:04
suss7-Mar-01 22:04 
GeneralRe: fstream newbie, it's hurting Pin
markkuk7-Mar-01 23:44
markkuk7-Mar-01 23:44 
GeneralRe: fstream newbie, it's hurting Pin
8-Mar-01 2:54
suss8-Mar-01 2:54 
GeneralRe: fstream newbie, it's hurting Pin
Erik Funkenbusch8-Mar-01 11:31
Erik Funkenbusch8-Mar-01 11:31 
GeneralHD Partition programming... Pin
Ammar7-Mar-01 20:42
Ammar7-Mar-01 20:42 
Generalerror...-=.-=. Pin
hahyojin7-Mar-01 19:26
hahyojin7-Mar-01 19:26 
GeneralRe: error...-=.-=. Pin
l a u r e n7-Mar-01 22:23
l a u r e n7-Mar-01 22:23 
GeneralRealtime sound mixing Pin
wParam7-Mar-01 17:18
wParam7-Mar-01 17:18 
Does anyone know how, or have a link to a place that has info on how to do realtime mixing of wav files?

I've gotten the mixing down, and it works fine, just have channels and "mix" them by adding bytes of the wav. My problem is that I'm doing this for a game, and because the output buffer is 1024 bytes, sometimes you can notice a delay between when the event (an explosion in this case) occurs and when the sound plays. But making the buffer short enough so that the delay isn't noticable is so short that my computer (pIII-450) can't keep up. Is there a way to access the data you've already passed to waveOutWrite? Or is there some other way I might be able to get rid of this stupid delay. (I know directsound can probably handle it, but I'm interested in a non-directx solution, if one exists.)

-wP

GeneralRe: Realtime sound mixing Pin
.::RockNix::.7-Mar-01 21:40
.::RockNix::.7-Mar-01 21:40 
GeneralRe: Realtime sound mixing Pin
7-Mar-01 21:53
suss7-Mar-01 21:53 
GeneralRe: Realtime sound mixing Pin
l a u r e n7-Mar-01 22:35
l a u r e n7-Mar-01 22:35 
GeneralAn SDI from a dialog based application Pin
j_had7-Mar-01 13:15
j_had7-Mar-01 13:15 
GeneralRe: An SDI from a dialog based application Pin
Christian Graus7-Mar-01 14:05
protectorChristian Graus7-Mar-01 14:05 
GeneralRe: An SDI from a dialog based application Pin
Masaaki Onishi7-Mar-01 15:12
Masaaki Onishi7-Mar-01 15:12 
GeneralRe: An SDI from a dialog based application Pin
Christian Graus7-Mar-01 19:26
protectorChristian Graus7-Mar-01 19:26 
GeneralRe: I doubt a little.... Pin
Masaaki Onishi8-Mar-01 3:47
Masaaki Onishi8-Mar-01 3:47 
GeneralDoubt me not, grasshopper :) Pin
Christian Graus8-Mar-01 9:09
protectorChristian Graus8-Mar-01 9:09 
GeneralRe: An SDI from a dialog based application Pin
j_had8-Mar-01 5:03
j_had8-Mar-01 5:03 
Questionhow to destroy dialog boxes Pin
7-Mar-01 10:48
suss7-Mar-01 10:48 
AnswerRe: how to destroy dialog boxes Pin
Christian Graus7-Mar-01 10:56
protectorChristian Graus7-Mar-01 10:56 
AnswerRe: how to destroy dialog boxes Pin
Masaaki Onishi7-Mar-01 15:20
Masaaki Onishi7-Mar-01 15:20 
GeneralRe: how to destroy dialog boxes Pin
Christian Graus7-Mar-01 19:45
protectorChristian Graus7-Mar-01 19:45 
GeneralMessage/Event problem (again) Pin
Richard Cheng7-Mar-01 8:37
Richard Cheng7-Mar-01 8:37 
GeneralRe: Message/Event problem (again) Pin
James R. Twine7-Mar-01 10:41
James R. Twine7-Mar-01 10:41 
GeneralRe: Message/Event problem (again) Pin
Richard Cheng7-Mar-01 10:59
Richard Cheng7-Mar-01 10:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.