01-09-2004 06:10 AM
01-12-2004 02:17 PM
01-23-2004 01:25 AM
05-26-2008 11:38 AM
05-27-2008 11:28 PM
Hi Richard,
I'm glad to hear that you found Juan Carlos' example useful.
In order to play the tone indefinitely, you could call the waveOutWrite function multiple times in a loop until you are done.
Alternatively, if you know how long you want to play the tone, you can set the dwLoops attribute of the WAVEHDR.
In order to create the exact signal you want (ie, with harmonics), you might want to create the datapoints manually.
All the SinePattern function does is use a mathematical formula to generate datapoints of the wave. If you know what you want the wave to look like you could write a function that does just that.
04-06-2010 06:38 AM
Does anybody know how to creat a *.wav file ( out of sound datas ) in CVI. This file could then be played with a media player without my program.
Many thanks for any assitance.
Johann
04-06-2010 06:47 AM
04-08-2010 02:27 AM
Hello, many thanks this helps. You spoke of more hints in the forum. Please be so kind and send me some more
links to the subject: creating a *.wav file. Or send me the search items. I had no glue what to write into the search line.
thanks Johann
04-08-2010 02:50 AM
Hi,
nothing spectacular, I simply used 'wav file' and got 64 entries... 🙂
11-16-2010 04:44 AM
Hello Justin,
I like to use the WaveOut1.c file to play my accelerometer datas measured in a noisy environment again in the office.
To play a continous tone ( fix sine ) e.g. you described to use the waveOutWrite function multiple times in a loop.
Disatvantage: the sounds overlap or with delay you get brakes. Can I get a message from the soundcard
when its ready playing?
Then I tried to use the dwLoops attribute of the WAVEHDR...my program ignores a higher loop number.
Can you please assist a second time.
Thanks for your patience
Johann Schuster