Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 7th, 2005, 4:11 PM   #41
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
How come you can only play tunes out the internal speaker with Win32 Beep?
The internal speaker is not part of a "sound sytem". It is (or was, last time I looked) a simple one-bit port. Win32 Beep addresses that properly. You may, too, if you get beyond the privileged cage.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 8th, 2005, 12:32 AM   #42
Spectre5
Newbie
 
Join Date: Jun 2005
Posts: 8
Rep Power: 0 Spectre5 is on a distinguished road
I had the codec problem for some reason, not sure exactly why. I have played wav's many times....anyways, I just opened it with itunes and it did work with that. Nice work DaWei.
Spectre5 is offline   Reply With Quote
Old Dec 8th, 2005, 1:14 PM   #43
SittingDuck
Programmer
 
SittingDuck's Avatar
 
Join Date: Nov 2005
Location: Moseley, Birmingham, England, Earth
Posts: 51
Rep Power: 4 SittingDuck is on a distinguished road
Yes I've read the posts but I still don't understand...
SittingDuck is offline   Reply With Quote
Old Dec 8th, 2005, 1:28 PM   #44
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
There was another thread asking if any binary information, such as that found in an exe file, could be 'converted' to sound. Actually, if I remember correctly, the questioner was hoping to use it as a method of concealment, or compression, or something, convert it back, and reuse it as an executable. My statement was that there was no need to convert the file, just wrap it in some sound-format definition and Bob's your aunt. There were some pros and cons expressed, so I just dood it. Rather than accept some user-specified file, I decided to back up my explorer.exe and hard-code it as the target file. There you have it. Simple as popping a pimple.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 8th, 2005, 2:00 PM   #45
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
You also get wave editors that open .raw files (waves without the header info; you usually have to specify the sampling rate etc. on opening). So copy a file to a .raw and you'd have the same effect - not as much fun as coding your own though
Klipt is offline   Reply With Quote
Old Dec 8th, 2005, 4:38 PM   #46
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The thread was a jocular response and an enjoyable exercise. Feel free to drop your (working) alternative right here. Off the cuff what-if's and but-you-cans don't count.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 8th, 2005, 4:58 PM   #47
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
My alternative was in Delphi - wouldn't it be sacrilege to put it in the C++ section?
Klipt is offline   Reply With Quote
Old Dec 8th, 2005, 5:29 PM   #48
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It is, but if this gets moved to its proper place in the Finished Projects forum, you should be good to go.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Dec 9th, 2005, 9:06 AM   #49
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
Quote:
Originally Posted by nnxion
It's already been said. You need to feed a file which is called explorer.bak and it's in the C:\windows\ folder. You could also look at the code.
I did create the explorer.bak file...
__________________
Learning to use C++ and loving every minute of it.
badbasser98 is offline   Reply With Quote
Old Dec 9th, 2005, 9:20 AM   #50
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
And you have it in the C:\windows\ folder?
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC