02-03-2010 08:27 PM
02-03-2010 10:38 PM
Hi,
Can you explain your application a little more and have a look at ni examples for sound.
Regards,
Shrenik
02-03-2010 11:22 PM
02-04-2010 05:53 AM
charles0601 wrote:
The application need play the audio continously without clipping when the incoming audio signal is delayed.
It is hard to play anything then the data is missing 🙂 But in order to play audio whithout any clipping you have to implement a buffer scheme. Post your code, it is much simpler to take it from there
02-04-2010 09:33 PM
This is a vi that simulate my target. The producer loop take longer time to produce audio data. The consumer loop need take the audio data from the producer loop and continously(repeatly) loop back the audio data obtained before until producer has delayed new audio signal pass to without clip.
I have not come out a good way to do this. Any help would cout. Thank you very much.
02-04-2010 09:55 PM
A little modification, can this be helpful?
02-04-2010 09:56 PM - edited 02-04-2010 09:59 PM
Try this. Don't put a delay in the loop.
Set a timeout on your dequeue with minimal to no timeout value. If it times out (meaning another item sound wasn't added), it will play the wave stored in the shift register. If a new queue element is available, it will play that.
02-04-2010 11:12 PM
This is the latest vi I have got taking. There is a clip sound when a new audio signal coming from producer loop to consumer loop. This is caused by the incontinous between the looping signal and new coming signal.
Is there any way to eliminate it? thank you.
02-05-2010 01:55 AM
To correct the argument in my previous post. The waveform in consumer loop seems like contious when the new wave from the producer loop. But there is a clip.
How this happen?
02-05-2010 08:38 AM