Hi,
I want to use your AudioOuput for streaming my data (generated by code) to the speakers but I can't get it to work. The code I have so far.
AudioOutput ao = new AudioOutput();
ao.BitsPerSample = 16;
ao.SamplesPerSecond = 40000;
ao.IsStereo = true;
double[][] d2 = new double[2][];
d2[0] = data.samples;
d2[1] = data.samples;
ao.AddSamples(d2);
ao.Start();
But I hear no sound. What do I miss hear?
AudioOutput, how does it work
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: AudioOutput, how does it work
Hi,
it needs a sequential data flow.
I wrote an example, which contains MultiChannelDataPlaybackFeeder, which outputs samples at correct pace for AudioOutput component.
I hope this helps
it needs a sequential data flow.
I wrote an example, which contains MultiChannelDataPlaybackFeeder, which outputs samples at correct pace for AudioOutput component.
I hope this helps
LightningChart Support Team, PT
Re: AudioOutput, how does it work
Hi,
that helped me allot. Thanks for that. I seems that the sound is looping all the time. Can I avoid this behavior that the sound will only play If new data is added?
Thanks.
that helped me allot. Thanks for that. I seems that the sound is looping all the time. Can I avoid this behavior that the sound will only play If new data is added?
Thanks.
Re: AudioOutput, how does it work
Hi,
Any impact on this?
Thanks
Any impact on this?
Thanks
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: AudioOutput, how does it work
The DirectSound buffers keep looping the sound if no new data is added. Keeeping the dataflow constant is important. Maybe you can set AudioOutput volume low to prevent it from being audible.
LightningChart Support Team, PT
Re: AudioOutput, how does it work
Thanks. I will do it that way.