|
Thanks.
Mark Salsbery wrote: XAudio2 is great/new but for XP SP2+ only if that's an issue
Can you please be specific about that ?
|
|
|
|
|
Hanan888 wrote: Can you please be specific about that ?
It's not supported on unsupported operating systems, which means all OSs
before XP.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Thanks.
Cool example, haven't still figured out if MCI is good for me.
Have you had any experience using it ?
|
|
|
|
|
Yeah,you can use of MCI for play mp3,wav,mpeg1,mpeg2,avi files.
|
|
|
|
|
Hanan888 wrote: My sound needs is to play a few short sounds
Use sndPlaySound for playing short wav files.
Hanan888 wrote: plus some background music
Use SND_ASYNC | SND_LOOP to asynchronously play in the background without stopping.
e.g.
sndPlaySound(_T( "C:\WIndows\Media\notify.wav", SND_ASYNC | SND_LOOP ); Another option is PlaySound . These API's are pretty limited but quite handy!
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
modified on Thursday, June 19, 2008 9:39 AM
|
|
|
|
|
I wanted to tell him sndPlaySound but I forgot its name .
|
|
|
|
|
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Have you tried SDL[^]?
Saurabh-
|
|
|
|
|
Thanks.
I once looked at SDL documentation and I thought, using SDL is something that I might use to build the entire application, not to add functionality. Am I wrong ?
|
|
|
|
|
I am not sure what you mean by "building an entire application" vs "adding functionality". SDL can be used to play sound. This is from the documentation.
1. Set audio playback of 8-bit and 16-bit audio, mono or stereo, with optional conversion if the format is not supported by the hardware.
2. Audio runs independently in a separate thread, filled via a user callback mechanism.
3. Designed for custom software audio mixers, but the example archive contains a complete audio/music output library.
-Saurabh
|
|
|
|
|
You could also use a 3rd party audio library. I've tinkered with the following two:
http://www.fmod.org/[^]
http://www.un4seen.com/[^]
They are overkill, perhaps, but they'll do what you need them to do.
They are free for non-commercial use. They also have shareware licenses and full commercial licenses.
Good luck!
|
|
|
|
|
In the class CXTFlatCombobox, there's a member function SetBackColor to modify the background color. But how to do the same thing in CXTPControlCombobox? Thanks.
|
|
|
|
|
laoyanwei wrote: CXTPControlCombobox
Ask it at CodeJock Visual C++ / MFC forum[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
From where he got that Class CXTFlatCombobox?
|
|
|
|
|
Regards,
Sandip.
|
|
|
|
|
i know why u r
|
|
|
|
|
Can AnyOne Please post the code 'How to Print DataGrid in Visual C++' Please Reply
Regards,
Rocky
|
|
|
|
|
Hi all,
How can change color of menubar and how can made changes in view of menu.
(like text color,size of text etc)
Please tell me,In which class of SDI applcation this coding is done.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
|
Your link was good he's ThatsMe,I remember him now.
|
|
|
|
|
dear all
i would like to save my data formated 100x3, i need to save it row by row when my program will run. how to program for this function? thanks a lot.
for example: sprintf(buff, "C:\database\%d",mydata), if i want to save a certain file in notepad or excel, how to do it?
gentleguy
|
|
|
|
|
Can you use like this code?
HANDLE handle=CreateFile(_T(""C:\\database\\123.txt"),...)
CFile m_File(handle);
m_File.Write(mydata);
...
...
|
|
|
|
|
i never use such code, can you explain detail thanks a lot. how to use sprintf() function to do this? thanks
gentleguy
|
|
|
|