|
Thanks Dave! I appreciate your assistance; I'll wait for your answer...
|
|
|
|
|
As I suggested earlier, it looks like you're not selecting the correct devices.
Mine is the standard rackmount Delta 1010. The inputs for mine are numbered as follows by winmm.dll, I would imagine yours are the same.
-1: Default (Control Panel|Sounds and Audio Devices|Audio|Sound recording|Default device - normally M-Audio Delta 1010 Multi)
0: M-Audio Delta 1010 Multi
1: M-Audio Delta 1010 1/2
2: M-Audio Delta 1010 3/4
3: M-Audio Delta 1010 5/6
4: M-Audio Delta 1010 7/8
5: M-Audio Delta 1010 S/PDIF
6: M-Audio Delta 1010 Mon. Mixer
I actually used the code from here[^] and duplicated the necesary objects in the code and UI. I then recorded multitrack with no issues. Note, each device is a stereo device. If you want to record multitrack mono then you'll need to record the necessary input into two streams and drop a channel in each stream.
This mixer[^] may also be useful to integrate!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Thanks Dave I'll going on with that solution. As you said the inputs for mine are the same as yours. But when I was recording from multi inputs, I got some gaps during playback & also a small delay. Did you have that problems during playback? & Did you used threads separatedly for every input to record?
Thanks again
|
|
|
|
|
I didn't use any threads, I just did it all on the main UI thread. The problems you're experiencing may be solvable my altering the buffer settings.
For low latency, it's better to use ASIO. There's an article on CP[^] that I haven't yet tried that uses ASIO with the steinberg SDK (they invented ASIO). There's also an open source project called PortAudio[^] and an open source .NET wrapper for it called PortAudioSharp[^].
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Hi,
On my local machine I have admin rights.
I run a windows service and it works fine with correct results...
Now I would like to run the service under a different account. So I created an account i.e userTest which is on the domain on the network. Then added this userTest to my machines admin users.
Question:
I do not know why the service does not run under this user's account. When I try to start the service, the message is: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service."
Any thoughts please?
Regards
|
|
|
|
|
So what does it say in the Eventlog?
|
|
|
|
|
User Logoff:
User Name: userTest
Domain: domainName
Logon ID: (0x0,0x7493371)
Logon Type: 5
|
|
|
|
|
Nope, not that, look for an exception caused by the service. Or even better, attach a debugger and see what happens.
|
|
|
|
|
Hi,
There is no exception.
|
|
|
|
|
arkiboys wrote: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service."
This mean that the service has done what it was programmed to do and exited.
My guess is that there are some user property that prevents this user from doing the actual work inside the service:
-Searching for a file in the wrong directory
-Doesn't have the right settings
-Hasn't mapped the correct network drive
etc
Kjetil
|
|
|
|
|
It could also mean that the service stopped prematurely (crashed, or something else).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Services aren't role-based. They're account based. You have to install it for the account you want to use it under, and then log on with that account.
Go into the service manager, and change the user account to the desired one.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hi,
Is there a possibility to do something like
if (File.Exists("*.txt"))
{...}
Thanks
|
|
|
|
|
|
Then share it with the world - the forum doesn't exist just for you!
|
|
|
|
|
you are right...
DirectoryInfo dir = new DirectoryInfo (Directory.getCurrentDirectory());
foreach (FileInfo f in dir.GetFiles("*.txt"))
{
....
}
|
|
|
|
|
|
Thanks, it's what i used.
|
|
|
|
|
Hi,
I have another 2 questions:
1. Programming datagrid related.
I have a datagridview that displays a dataset. If I change row 1 the validation is executed. And as long as I am parked on that row the data is as I changed. But as soon as I moved to the next row the changes i have done is unchecked for that row.
I need to be able to edit multiple lines before I save the data. Do anyone know what I am doing wrong.
2. Other
Does anyone know where I can subscribe to C#/VB.Net challenges? One of my friends subscribed to a MS SQL Server site... every day they send him a problem someone struggled with (this is not beginner problems) and the following day they send the solution. This is all done to develop that ultimate experience.
Thanks in advance for your help.
Chris
|
|
|
|
|
advice: use 1 post per question, you will get more ansers.
about 1) you saw you want to edit rows, do it in sql procedures and trigger in c#.
about 2) don´t know that but when launch visual studio they ask you about some kind of experiences to participate, but look in MS site!!!!!
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hello
I'm trying to extend a standard Windows Forms ComboBox, by adding a new property ImageMember which should display an image from database. It is supposed to be the databound property just like DisplayMember and ValueMember are.
At run-time everything works correctly. My question is how to allow one to choose a field from dataset for this property at design-time, just like you do for DisplayMember property.
The short question is: How can I make ImageMember property editor behave as DisplayMember's at design-time?
I've looked through internet and the closest solution seems to be the following:
public class ImageMemberEditor: UITypeEditor
{
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
{
if (context != null)
return UITypeEditorEditStyle.DropDown;
return base.GetEditStyle(context);
}
public override object EditValue(ITypeDescriptorContext context,IServiceProvider provider,object value)
{
if ((provider != null) && (context.Instance != null))
{
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(context.Instance)["DataSource"];
if (descriptor == null)
{
return value;
}
object dataSource = descriptor.GetValue(context.Instance);
if (this.DesignBindingPicker == null)
{
this.designBindingPicker = new DesignBindingPicker();
}
DesignBinding initialSelectedItem = new DesignBinding(dataSource, (string)value);
DesignBinding binding2 = this.designBindingPicker.Pick(context, provider, false, true, true, dataSource, string.Empty, initialSelectedItem);
if ((dataSource != null) && (binding2 != null))
{
value = binding2.DataMember;
}
value = lb.SelectedItem.ToString();
}
return value;
}
}
However, Visual Studio can not resolve designBindingPicker and DesignBinding :
"Error 5 The type or namespace name 'DesignBinding' could not be found (are you missing a using directive or an assembly reference?)"
Any help will be greately appreciated.
Thanks in advance
|
|
|
|
|
Don't cargo cult program.
Presumably the thing where you lifted your code had a "DesignBinding" that has nada to do with your control. You're simply providing a type editor, so you need to implement a method that can edit your value. How you implmement it is up to you, but you don't need to keep any of the code in the one you lifted. Just write your own code.
|
|
|
|
|
dojohansen, thanks for reply.
Looks like these classes are private to .NET framework itself and therefore can not be accessed from user code.
Anyway, all I need is an advice of how to retrieve the DataSet fields at design-time from property editor.
I'd appreciate any help on this
|
|
|
|
|
Does anyone know if its possible to select table column names in c#.
I want something like
while dtr.read()
{
combo.items.add("dtr column name");
}
|
|
|
|