MultiMedia Soft forum

MultiMedia Soft products => Audio editing components => Topic started by: QNT on March 01, 2017, 11:16:21 AM

Title: Composing Stereo sound from two streams
Post by: QNT on March 01, 2017, 11:16:21 AM
Hello,

the examples in the helpfiles give the following way to produce a stereo sound of two files:

Int32 nUniqueIdFile1 = 0;
Int32 nUniqueIdFile2 = 0;

AudioSoundEditor.AudioSoundEditor theEditor = new AudioSoundEditor.AudioSoundEditor();
theEditor.Name = "Testing";
theEditor.InitEditor();
theEditor.SoundComposer.SessionInit(44100,2);
theEditor.SoundComposer.ItemSoundFileAdd(@"c:\testfiles\ch1.wav", false, 1, 0, ref nUniqueIdFile1);
theEditor.SoundComposer.ItemSoundFileAdd(@"c:\testfiles\ch2.wav", false, 1, 0, ref nUniqueIdFile2);

My audiofiles that have to be combined to a stereo sound are stored in a database.
Is there a way to compose a stereo sound of two streams?
So, in stead of providing the filenames of the two channels, is there a way to provide the soundcomposer with
two streams (byte??)??
This would save me the trouble of first saving the sound from the database to a file....

Regards,

QNT
Title: Re: Composing Stereo sound from two streams
Post by: Administrator on March 01, 2017, 01:05:47 PM
Hello,

the SoundComposer.ItemSoundFileMemoryAdd method gives the possibility to add an audio file stored inside a memory buffer.

Kind Regards

Severino Delaurenti
MultiMedia Soft
Title: Re: Composing Stereo sound from two streams
Post by: QNT on March 01, 2017, 01:25:35 PM
Thanks,

is there also a way to export the composed sound to a stream instead of to a file?

Regards,

QNT
Title: Re: Composing Stereo sound from two streams
Post by: Administrator on March 01, 2017, 05:54:11 PM
You are welcome.

Unfortunately export to memory streams is not supported.

Kind Regards

Severino Delaurenti
MultiMedia Soft