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

C / C++ / MFC

 
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 
GeneralRe: Realtime sound mixing Pin
.::RockNix::.7-Mar-01 21:40
.::RockNix::.7-Mar-01 21:40 
Hi,

have you tried using more but shorter buffers ? Ok this will cause a higher use of the write functions - but shorter buffers have of course shorter delay in change.

But wait - You are using 1024 Sample Buffers ? I guess for a game you are using 44,1k/16bit/mono ? That means the total play-time of the buffer is about 23ms. Therefor a change needs at least this time to appear. On the other side this time can only appear as a short chorusing effect because the time is to short for human hearing to notify 2 seperate sounds. I think you should not notify a delay. Maybe you have a great preformance loss in your wave-mixer ? You should check it out.

To raise up speed you should not use the wave-event (don`t know if you did). Better use the WaveOutProc-CALLBACK.

Then you should put the output routine in a seperate thread.

Hope it helps





Mario ///

----------------------
www.klangwerker.de
mario@klangwerker.de
----------------------
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 
GeneralRe: Message/Event problem (again) Pin
Christian Graus7-Mar-01 15:56
protectorChristian Graus7-Mar-01 15:56 

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.