Click here to Skip to main content
16,003,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: device context question Pin
4-Jul-02 9:19
suss4-Jul-02 9:19 
GeneralVersion info managing Pin
56789012343-Jul-02 22:29
56789012343-Jul-02 22:29 
Generalhelp me in MFC Pin
HoldMe3-Jul-02 22:13
HoldMe3-Jul-02 22:13 
Generalautologin with Win2000 Pin
Jerome Conus3-Jul-02 20:13
Jerome Conus3-Jul-02 20:13 
GeneralRe: autologin with Win2000 Pin
benjymous3-Jul-02 23:20
benjymous3-Jul-02 23:20 
GeneralRe: autologin with Win2000 Pin
Mike Nordell4-Jul-02 6:19
Mike Nordell4-Jul-02 6:19 
GeneralRe: autologin with Win2000 Pin
Michael Dunn4-Jul-02 7:38
sitebuilderMichael Dunn4-Jul-02 7:38 
QuestionShrinking a WAV (audio formats)? Pin
3-Jul-02 19:03
suss3-Jul-02 19:03 
Hi,
my application plays a WAV file to sign some action. The file is 12KB and plays ca. 1 second sound. I'd like to include more sounds and reduce the size of the executable. For example for graphics I switched over to compressed TGA files and drastically (!) reduced file size.

Question: Can I shrink the size of my WAVs? Perhaps WAV format do provide various (compressed) formats; and which tool should I use?

For playing the sound I use this code snippet (IDR_WAVE_PING is my file linked to the resource):

PlaySound(MAKEINTRESOURCE(IDR_WAVE_PING),AfxGetInstanceHandle(), SND_ASYNC + SND_RESOURCE + SND_NODEFAULT);

Thanks for feedback! Smile | :)

PS: I don't use MP3 or OGG yet, because I don't want to ship 3rd party DLLs with my exe. I'd like to have a "stand-alone" executable (at the moment). If there are any alternatives I should have a look at, please tell me.
AnswerRe: Shrinking a WAV (audio formats)? Pin
Christian Graus3-Jul-02 19:38
protectorChristian Graus3-Jul-02 19:38 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:04
Larry Antram3-Jul-02 20:04 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell4-Jul-02 16:46
Mike Nordell4-Jul-02 16:46 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram4-Jul-02 17:18
Larry Antram4-Jul-02 17:18 
GeneralRe: Shrinking a WAV (audio formats)? Pin
5-Jul-02 7:21
suss5-Jul-02 7:21 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell6-Jul-02 6:42
Mike Nordell6-Jul-02 6:42 
GeneralRe: Shrinking a WAV (audio formats)? Pin
haronis26-Jul-02 1:40
haronis26-Jul-02 1:40 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Christian Graus26-Jul-02 1:54
protectorChristian Graus26-Jul-02 1:54 
AnswerRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:25
Larry Antram3-Jul-02 20:25 
GeneralRe: Shrinking a WAV (audio formats)? Pin
5-Jul-02 7:24
suss5-Jul-02 7:24 
GeneralModless Dialog problem (MFC) Pin
3-Jul-02 18:50
suss3-Jul-02 18:50 
GeneralRe: Modless Dialog problem (MFC) Pin
Christian Graus3-Jul-02 19:36
protectorChristian Graus3-Jul-02 19:36 
GeneralMessage handlers for array of controls Pin
Chou3-Jul-02 17:35
Chou3-Jul-02 17:35 
GeneralRe: Message handlers for array of controls Pin
Dave Bryant3-Jul-02 17:48
Dave Bryant3-Jul-02 17:48 
GeneralRe: Message handlers for array of controls Pin
Rama Krishna Vavilala3-Jul-02 17:54
Rama Krishna Vavilala3-Jul-02 17:54 
GeneralThanks Pin
Chou3-Jul-02 18:15
Chou3-Jul-02 18:15 
Generalstd::string and std::wstring Pin
Le centriste3-Jul-02 16:24
Le centriste3-Jul-02 16:24 

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.