21 May '13 - 16:34 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Simultaniously using multiple channels with one soundcard  (Read 994 times)
NoWHere80
Posts: 3


« on: 26 May '08 - 17:28 »
Reply with quoteQuote

Hello folks,


you have a new member and BASS user Smiley
I hope you can help me.

I want to mesure the delay of an audio signal. The signal is looped back from lineout to mic.

The only useful post - I found - was this one: http://www.un4seen.com/forum/?topic=3495.msg23199#msg23199

My question:
Is it also posible to record simultaniously with only one standard soundcard?
If the answer is "YES", I will describe my problem further more.
I read the sentence about "context switching" in the docu, but it doesn't help me at the moment.


Thanks in advance for any information!
Totti
« Last Edit: 27 May '08 - 10:35 by NoWHere80 » Logged
NoWHere80
Posts: 3


« Reply #1 on: 27 May '08 - 10:16 »
Reply with quoteQuote

Hello again,

here some further explanations:

with the program, I wrote in delphi, I can select the input (BASS_RecordSetInput).
Everything works fine for one instance of the programm. I get the peak level and the frequency.

Now I start the programm a second time.
If I select mic in instance 1, instance 2 also changes the input to mic - and vice versa?!?

The order of function calls is:
BASS_Init(-1,...)
BASS_RecordInit(-1)
OnComboboxChange: BASS_RecordSetInput(Combobox.ItemIndex)
BASS_RecordStart(...,@RecordingCallback;Cardinal(Self))

Can nobody out there help me out of my trouble? Are there global variables in the .dll or what is the reason?
I can't imagine, that it is not possible, to get a stream from the mic and lineout at the same time...
If there are posts to this topic in the forum, please tell me, what to search for. Maybe I used the wrong keywords.

If you wish, I send you the source code.

Greetz,
Thorsten
« Last Edit: 27 May '08 - 11:08 by NoWHere80 » Logged
radio42
Posts: 4012


« Reply #2 on: 27 May '08 - 11:28 »
Reply with quoteQuote

Using multiple input devices simultaniously is supported by BASS.
However, using (recording) from multiple inputs from the same device is not supported by Windows.
If you change the input via "BASS_RecordSetInput" this change is system-wide.
As stated in the docs: "Changes made by this function are system-wide, ie. other software using the device will be affected by it".
So it is only possible to record from one input per device at a time.

Many soundcards therefore present it's various inputs as independent devices - which is then fully supported: see "BASS_RecordSetDevice".
Logged
NoWHere80
Posts: 3


« Reply #3 on: 28 May '08 - 10:09 »
Reply with quoteQuote

Tank you so much, Radio42!!!

You really made my day. Now I understand the behaviour.

One last question:
I didn't found a list of fully supported soundcards.
In the datasheets of soundcards is written: "full-duplex"
But this doesn't mean from my point of view, that the driver implements them as separat devices, right?

Would you give me a tip, which card to buy (under 200€). I need the same amount of Line-In and Line-Out.
Do you know one of the following cards?
  • M-Audio Delta Audiophile 2496, PCI
  • M-Audio Delta Audiophile 192, PCI
  • TerraTec Aureon 5.1 PCI (as a sheep alternative with only one Line-In)

Thanks again,
Totti
Logged
radio42
Posts: 4012


« Reply #4 on: 28 May '08 - 11:54 »
Reply with quoteQuote

I guess there is no list of fully supported soundcards - as BASS typically works with any soundcards, which also work under Windows. So I guess it is more a question of driver quality ;-)

I personally also use M-Audio Cards - and can really recommend them - I haven't tried the Audiophile once, but M-Audio is quite know for excellent drivers and typically implement the multi I/O's as seperate devices, so I guess they also did for the Audiophile.
I personally wouldn't use TerraTec, since in the past their drivers have been known as not really good - but that might have changed. I also don't know, if they implemented their multi IO's as seperate devices or not.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines