Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Please read my question Pin
Richard MacCutchan5-Nov-09 22:51
mveRichard MacCutchan5-Nov-09 22:51 
AnswerRe: Please read my question Pin
Maximilien6-Nov-09 1:37
Maximilien6-Nov-09 1:37 
AnswerRe: Please read my question Pin
Kushagra Tiwari6-Nov-09 2:17
Kushagra Tiwari6-Nov-09 2:17 
QuestionRun at startup using scheduled tasks Pin
hxhl955-Nov-09 15:49
hxhl955-Nov-09 15:49 
AnswerRe: Run at startup using scheduled tasks Pin
«_Superman_»5-Nov-09 15:55
professional«_Superman_»5-Nov-09 15:55 
GeneralRe: Run at startup using scheduled tasks Pin
hxhl955-Nov-09 16:14
hxhl955-Nov-09 16:14 
GeneralRe: Run at startup using scheduled tasks Pin
«_Superman_»5-Nov-09 16:18
professional«_Superman_»5-Nov-09 16:18 
GeneralRe: Run at startup using scheduled tasks [modified] Pin
hxhl955-Nov-09 16:36
hxhl955-Nov-09 16:36 
GeneralRe: Run at startup using scheduled tasks Pin
«_Superman_»5-Nov-09 17:05
professional«_Superman_»5-Nov-09 17:05 
GeneralRe: Run at startup using scheduled tasks Pin
hxhl955-Nov-09 17:10
hxhl955-Nov-09 17:10 
GeneralRe: Run at startup using scheduled tasks Pin
«_Superman_»5-Nov-09 17:11
professional«_Superman_»5-Nov-09 17:11 
AnswerRe: Run at startup using scheduled tasks Pin
David Crow6-Nov-09 3:42
David Crow6-Nov-09 3:42 
AnswerRe: Run at startup using scheduled tasks Pin
Luc Pattyn5-Nov-09 16:28
sitebuilderLuc Pattyn5-Nov-09 16:28 
GeneralRe: Run at startup using scheduled tasks Pin
hxhl955-Nov-09 16:35
hxhl955-Nov-09 16:35 
GeneralRe: Run at startup using scheduled tasks [modified] Pin
Luc Pattyn5-Nov-09 17:20
sitebuilderLuc Pattyn5-Nov-09 17:20 
GeneralRe: Run at startup using scheduled tasks Pin
hxhl955-Nov-09 17:23
hxhl955-Nov-09 17:23 
GeneralRe: Run at startup using scheduled tasks Pin
Luc Pattyn6-Nov-09 2:44
sitebuilderLuc Pattyn6-Nov-09 2:44 
GeneralRe: Run at startup using scheduled tasks [modified] Pin
hxhl956-Nov-09 11:52
hxhl956-Nov-09 11:52 
QuestionIs it possible of removing menues from a CDockablePane??? Pin
Dale Haessel5-Nov-09 11:33
Dale Haessel5-Nov-09 11:33 
AnswerRe: Is it possible of removing menues from a CDockablePane??? Pin
Randor 5-Nov-09 11:53
professional Randor 5-Nov-09 11:53 
GeneralRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 11:56
professional«_Superman_»5-Nov-09 11:56 
JokeRe: Is it possible of removing menues from a CDockablePane??? Pin
Randor 5-Nov-09 12:05
professional Randor 5-Nov-09 12:05 
JokeRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 12:06
professional«_Superman_»5-Nov-09 12:06 
AnswerRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 11:54
professional«_Superman_»5-Nov-09 11:54 
QuestionSound programming issue. Pin
GLGunblade5-Nov-09 9:27
GLGunblade5-Nov-09 9:27 
I'm Using directsound for ogg file playback.
Also using the code I took from this website for it.
http://www.flipcode.com/archives/Ogg_Vorbis_Player_Class.shtml

It works well but I'm trying to play a 2nd music/sound file straight after the 1st finishes.

At the moment i believe the 2nd sound file plays a second just before the first finishes thus creating a rather bad mismash of a sound.

Can anyone tell me from looking at the code why this is?

The only idea I have is that it has to do with the update function and how it returns the boolean "bdone", but since I have trouble trying to understand the complex parts of code I have no idea how to fix it.

What i'm doing now is play first sound.
If the sound is finished playing (bdone=true).
play second sound.

if (flag==0)
	{
		oggPlayer1.Play();
		flag=1;
	}
	if ((oggPlayer1.IsPlaying() == false) && (flag==1))
	{	
		oggPlayer2.Play();
		oggPlayer1.Close();
		
		flag=2;
	}


names have been changed from original code but it's still pretty much the same.

Thanks for any help.

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.