 |
|
 |
Hi Alexander,
I've enjoyed reading your article! Rather unusual and creative approach...
Kudos to the author and 5*.
My Best,
Alex
|
|
|
|
 |
|
|
 |
|
 |
Can I play multichannel( 4 channels) sound using waveout APIs?
if(Yes)
{
How?
}
else
{
what can I do?
}
Thank you;
haha
|
|
|
|
 |
|
 |
Hello Sir,
My Query is Regarding PCM wave of 16 bits.
After Recording , lpData of WAVEHDR contains the data.
I had copied the lpData to char *buffer.
Now , I need to store the data in a file.
After writing Header information , I stored the data in the file as char (bytes by bytes).
This works fine for 8 bit (both mono & stereo).
I followed the same method for 16 bit .When I play the stored file ,noise also comes along with the recorded data .
I read from some articles related to WAVE and came to know that 16 bit should be stored as short..
If so , How can i store it ???
Else , If you have someother idea,Please throw light on it.
Thanks
Maria
Maria Jothi (Software Engineer)
MAIL-ID:maria_jothi@hotmail.com
|
|
|
|
 |
|
 |
I had written a C program that created morse wave tones in memory, each with an artificial file header, and used sndPlaySound to execute them asynchronously. Since each wave was in it's own section of an array, the patterns for the tones only needed to be created once and could be replayed infinately without having to recalculate them each cycle, except when parameters changed, of course. This worked extremely well and seemed like THE solution.
This example is far better! The memory used by this is far less and I have found that the latency factors that plague other morse examples (such as other processes in the background) are non-existant here.
Also, this code sheds light on the waveOutPrepareHeader, waveOutWrite, etc API calls and their use, along with creating threads and ensuring critical timed processes work properly. There is also a lot of examples put into practice on maintaining "clean" memory and how memory leaks are avoided. This code is also well structured and fairly easy to trace through.
What else can I say, except thank you!
|
|
|
|
 |
|
 |
I have tried using these classes in my application where I need to produce single short tones based on what the mouse is over. It works, but will a large amount of "static" sound. Any suggestions?
Michael S. Scherotter
Lead Software Architect
Tartus Development, Inc.
|
|
|
|
 |
|
 |
Hi,
Any ideas How to do a timed event with MFC?
say for example have a MessageBox say Hello, and play a tune every 15 mins...
Looking for thread and WM_ help...
Cheers
UkJay
|
|
|
|
 |
|
 |
To do a timer event use the function 'SetTimer' which created a WM_TIMER message a the time interval you have specified.
With this function, Windows place only one WM_TIMER message in message list of the program for the ID which identify the Timer event.
You also have to create a 'TimerProc' wich receive an int as parametre which is ID of timer event.
If you work with MFC you can create the TimerProc with ClassWizard by select the message WM_TIMER.
In this case, you don't have to specify a TimerProc in the call.
To kill a timer event use 'KillTimer(int nIDEvent)' for class and 'KillTimer(HWND hWnd,int nIDEvent)' for global.
SetTimer exist in these class (parameters) :
'global' UINT( HWND hWnd,// handle of window for timer messages
UINT nIDEvent,// timer identifier
UINT nElapse,// time-out value
TIMERPROC lpTimerFunction)// address of timer procedure
CWnd UINT( UINT nIDEvent,
UINT nElapse,
void(CALLBACK EXPORT* lpfnTimer)(HWND,UINT,UINT,DWORD));//NULL if message is handled by CWnd Object
CWindow UINT(UINT nIDEvent,UINT nElapse)
& the child class...
TIMERPROC have these parametres : ( HWND hWnd,// handle of window for timer messages
UINT uMsg,/*=WM_TIMER*/
UINT idEvent,// timer identifier
DWORD dwTime)/*current system time*/ TIMERPROC;
|
|
|
|
 |
|
 |
If any body is interested I have Phone Tones in 'wav' format.
Norm
|
|
|
|
 |
|
 |
I can recommend Cooledit from Syntrillium, it comes in a demo version. It can generate (among many things !) DTMF, do filtering etc etc.
|
|
|
|
 |
|
 |
I'm currently working on WAP technology and i'm interested to see your phone tone programming
chess
Rehan
|
|
|
|
 |
|
 |
I am a computer science student and I am developing a project that involves some audio technologies. So I would be interested to have phone tones in wav format.
Please contact me
|
|
|
|
 |
|
 |
anyone ave tones that u type in composer?
pam
|
|
|
|
 |
|
 |
Can you sent me those phone-tones in wav please.
tanx
rob
|
|
|
|
 |