25 May '13 - 18: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: How to set a default recording format  (Read 335 times)
pethead
Posts: 27


« on: 20 May '12 - 14:48 »
Reply with quoteQuote

I have my USB Audio codec device.
When it's installed it has a default recording format as 44000, 1channel, 16 bit. It shown in Windows Record Device Properties window.

When I call BASS_RecordStart I set as 2 channel parameter, but when I get data from 2 channel, data are same as from 1 channel while I changed default recording format in Windows Audio Properties is 1 channel. When I set manually to 2 channels, my BASS get data procedure begins to read correct data from 2 channel.

But I need to set it as 2channel format programmatically.
« Last Edit: 20 May '12 - 16:04 by pethead » Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 21 May '12 - 14:16 »
Reply with quoteQuote

I'm not sure it is possible to programmatically change a device's recording format in Windows; I believe that is only adjustable by the user via the control panel. If you need to be able to set the device's format when recording, you could use ASIO or exclusive mode WASAPI instead, eg. via BASSASIO or BASSWASAPI.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines