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
Hello,
the SoundComposer.ItemSoundFileMemoryAdd method gives the possibility to add an audio file stored inside a memory buffer.
Kind Regards
Severino Delaurenti
MultiMedia Soft
Thanks,
is there also a way to export the composed sound to a stream instead of to a file?
Regards,
QNT
You are welcome.
Unfortunately export to memory streams is not supported.
Kind Regards
Severino Delaurenti
MultiMedia Soft