MultiMedia Soft forum

MultiMedia Soft products => Audio editing components => Topic started by: QNT on January 19, 2017, 02:46:23 PM

Title: Compose Stereo file
Post by: QNT on January 19, 2017, 02:46:23 PM
Hello you all,

I'm new to this soft so maybe me question is a little bit silly to you all.

I'm trying to compose a stereo file of two separate wav-files.
The code I'm using is the following:

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);

The 5th line of my code (theEditor.InitEditor();) allways returns the following error:

"Object reference not set to an instance of an object".

What am I doing wrong?

Please advise?

Regards,

QNT
Title: Re: Compose Stereo file
Post by: Administrator on January 19, 2017, 03:20:24 PM
Hello,

"Audio Sound Editor for .NET" is a Winform component so you should add an instance of the same into the container form at design-time; the tutorial for adding the component at design-time can be found inside the documentation section "How to add the component to your projects" which is also available online on the following link:
http://www.multimediasoft.com/asoednet/help/how_to_add_the_control_to_your.htm (http://www.multimediasoft.com/asoednet/help/how_to_add_the_control_to_your.htm)

If you should have any further issue, please, let me know.

Kind Regards

Severino Delaurenti
MultiMedia Soft
Title: Re: Compose Stereo file
Post by: QNT on January 19, 2017, 03:26:49 PM
Hello Severino,

does this mean that "Audio Sound Editor for .NET" can not be used in a windows service?

That would realy be a pitty.

Regards
Title: Re: Compose Stereo file
Post by: Administrator on January 19, 2017, 03:35:28 PM
Hello,

in this case you should use a different component which is named "Audio Sound Editor API for .NET":
http://www.multimediasoft.com/asoednetapi/ (http://www.multimediasoft.com/asoednetapi/)

This .NET API component can be used not only for Winform or WPF applications but also for applications without a user interface like console applications and Windows services and its setup package comes with a sample C# project for both purposes.

If you should have any further question, please, let me know.

Kind Regards

Severino Delaurenti
MultiMedia Soft

Title: Re: Compose Stereo file
Post by: QNT on January 19, 2017, 03:49:36 PM
Hello Severino,

what is the supplement if I order the Audio Sound Editor API for .NET next to the Audio Sound Recorder for .NET which I already purchased end of last year?
Can it be ordered as a supplement or do I have to pay the complete price?


Regards
Title: Re: Compose Stereo file
Post by: Administrator on January 19, 2017, 06:09:23 PM
Hello,

please, check your e-mail, I've just sent a private message.

Kind Regards

Severino Delaurenti
MultiMedia Soft