|
JensB wrote:
Which program do you guys advise to use to automated building so I can do building easily on Win & Linux? ant? Scons?
gmake[^] is available for Linux and Windows
|
|
|
|
|
I'm trying to finish a report on DSP (digital signal processing) technique increasing effect of sound. However, I can't find any documents teaching about this technique on almost the webpages. I hope your help...You can give me a link to a webpage, a ebook ,and anything else about the technique...thanks so much <vtalau@yahoo.com>
|
|
|
|
|
try out thiz sire....very useful.....good forum for dsp stuff!!!!!
http://www.musicdsp.com/[^]
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
Hello,
I have developed Console based application . Now I want some code which will minimize the application to system tray and the process is running in the background.
I saw many codes but all are available for MFC or dialog based application .
can any one give me guidence or send me the code for the same.
Thanks in advacnce,
Rajat
|
|
|
|
|
In fact you don't want your console to be visible is it ?
See the : FAQ[^]
|
|
|
|
|
ya,
Basically its a continuously running process so i want it to minimize to system tray .
can any one please tell me how to get handle for the console window in vc++.
Thanks
|
|
|
|
|
I don't think this would be possible with a standard console application. I think (but I'm not sure) this is totally incopatible with the windows API and so, the taskbar is purely windows specific. I might be wrong but that sounds logical to me...
If you really need to do this, you will need to change your application and move it to a Win32 (or MFC) application
|
|
|
|
|
Hi..
I need to maintain a log file which will contain the time i started a playback.. and the time it ended.. What i have done is:
-> Get the current time and write it to log..
-> The code that takes care of sound playback..
-> Get the current time and write it to log..
The problem is .. both these times are same.. (the playback goes on for more than 10 secs..)
Can anyone help me out..
regards
pallavi
|
|
|
|
|
If you don't post the code, we won't be able to help you... Or at least the code that write the times in the log file.
|
|
|
|
|
Ya.. here it is..
CTime theTime=CTime::GetCurrentTime();
CString startTime=theTime.Format( "%H:%M:%S, %B %d, %Y" );
WriteLogFile(startTime);
m_pMyDS->Play();
CTime getTime=CTime::GetCurrentTime();
CString endTime=getTime.Format( "%H:%M:%S, %B %d, %Y" );
WriteLogFile(endTime);
.......................
Play() is a memeber function of class MyDirSound.. which plays the wave file.. The same code for writing time works fine with the recording of sound module ..
pallavi
|
|
|
|
|
I don't see any problems with this code... Are you sure your Play function lasts for 10 seconds ? Maybe the sound is played in another thread and thus the Play function returns immediately even if the sound lasts for 10 seconds
[EDIT] A way to check this: just after the Play() function, display a MessageBox. If it is prompted when the sound is playing, that means it is played in a separate thread, thus that's logical you have the same time before and after the function. If it is displayed when the sound is finished, the problem must be elsewhere [\EDIT]
|
|
|
|
|
hi ..
Thank you..
You are right.. The the message is prompted when the sound is playing.. I am using Directx's DirectSound to play the wave files.. I tried defining and calling the WriteLogFile(..) function in the MyDirSound class itself.. What must be wrong?..
pallavi
|
|
|
|
|
But what do you want to achieve exactly ?? Measure the time of the sound sample ?
You won't be able to do it like that. Because as I said, if it is run in another thread, you won't be able to access it (even in your MyDirSound class). The thread is ran directly inside the DirectX layers so you don't have access to it. But (fortunately ) there is probably another solution: normally there is something you can find in DirectSound (I suppose, because I don't know DirectSound) that will let you know when the sample is finished. Something like a callback function you can set or something like that. But in this field I have no knowledge so you will need to look in the doc of DirectSound. But I suppose they provided a way to do it...
|
|
|
|
|
Ya.. Thanx cedric.. There is a function called setcallback(..).. I will try it out..
thank you
regards
pallavi
|
|
|
|
|
Hmm, yes but before jumping on that, be sure that this is used to provided a call-back function that will be called when the sample is finished. It could be also a call-back that is called for some other reasons . Maybe also this will be called for several different events and passing an argument that describe which kind of event occurs...
So, before starting writing code, look at the doc to see if it fits what you are seeking for (just to avoid you losing time on things won't work )
Also, if you have time, try to document a little bit about the threads (at least the basics: what it is and how they work, not be able to use them but at least understand what it is).
|
|
|
|
|
In CMyDirSound::Play() .. there is a call ..
m_lpDSB->Play(0, 0, DSBPLAY_LOOPING);// Play(..) member of IDirectSounBuffer
............
I tried saving times before and after this function call.. but both times are same.. all wave files which i am playing are more than 10 secs..
..pal
|
|
|
|
|
See my previous post.
Your function CMyDirSound::Play() is called in the same thread so there is absolutely no reasons AT ALL (I'm not shouting, just insisting on that point ) that it will be ran in a separate thread... You know what a thread is at least ? (I mean, for understanding this, it will be easier for you).
The thread is started inside the function of DirectSound and that's perfectly logical: imagine that all your application will freeze during ten second just because you play a sound
|
|
|
|
|
I try to load .cgm/.wmf file in VC++.The clarity of the image decreases if it is loaded in VC++.But the clarity of the image is retained if it is inserted in MSExcel.Since .wmf is Microsoft supported format it should be of same clarity in both MsExcel and VC++.Pls give me a way so as get the latter's clarity in VC++.
Sudha
|
|
|
|
|
A wmf is a metafile, a sequence of instructions on how to draw an image. It cannot lose quality, all that can happen is if you draw the metafile onto an image smaller than the screen, then stretch that. The problem is almost certainly in how you load and display the metafile as a raster image.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I tried to load the image using render function.Then I tried with playmetafile functions.The problem is that the image drawn is not smooth in either way.But as I told before if we insert the image in MSExcel,it is so smooth.
I want to load a image in .wmf.I want the loaded image to be smoother.Pls send me any code snippets for that.
Sudha
|
|
|
|
|
Hi
I have written an application which includes a timer and a thread. In debug mode everything goes on fine. But in release mode there's chaos. My application freezes when it starts. Please help me.
Regards
Sreekanth Muralidharan
|
|
|
|
|
|
Hello Alok
Thanks a lot for your prompt help. You are really an asset to codeproject.
Regards
Sreekanth Muralidharan
|
|
|
|
|
well dear matez.....
i have developed a software using vc++,it workz fine but.....right now i have been asked to make it "cross-platform" so that it runz in mac os x!.....my question is how do i do that?.....microsoftz api are exclusive to windowz rght?....so how will a code in vc++ work in mac? ....help me out here anyone
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
wxWidgets
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|