Author Topic: Problem with USB Microphone  (Read 1745 times)

Nik Lever

  • Guest
Problem with USB Microphone
« on: 6 Oct '06 - 14:51 »
Hi
If I try to select a USB Microphone I get an error. It's a Director app using the BASS xtra, works fine for a 3.5mm jack type, Just not with a USB Microphone. I'm happy that the device ID's are good.

on startRecording
  --showMessage("Start Recording called")
  gBASS.xaBASS_RecordFree()
  gBASS.xaBASS_RecordInit(gInputs.micDevID)
  res = gBASS.xaBASS_RecordSetDevice(gInputs.micDevID)
  if (not res) then
    showMessage( "Problem setting the device" )
    return
  end if
  res = gBASS.xaBASS_RecordSetInput(gInputs.micInputID, 131072) -- This is where it fails
  if (not res) then
    showMessage( "Problem selecting the Microphone" )
    gBASS.xaBASS_RecordFree()
    sprite(1).gotoAndStop("NoMic")
    return
  end if 
  vol = sprite(1).vol
  gStreamH = gBASS.xaBASS_RecordStart(44100, 0)
  gRecording = TRUE 
end

Ian @ un4seen

  • Administrator
  • Posts: 21185
Re: Problem with USB Microphone
« Reply #1 on: 7 Oct '06 - 13:29 »
I'd guess that the USB microphone doesn't have any input on/off options (ie. it's just a microphone), so the BASS_RecordSetInput call fails. What's the error code? (BASS_ErrorGetCode)