Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Getting access to internal mic on a Mac  (Read 9456 times)

0 Members and 1 Guest are viewing this topic.

jasonnelson618

  • Newbie
  • *
  • Posts: 1
    • View Profile
Getting access to internal mic on a Mac
« on: December 03, 2018, 08:16:25 pm »
Hello!

Thank so much for reading;

So I'm working with the audio module and learning the various classes and functions. An area in which I'm particularly interested is the recording classes.

I set up a program in an attempt to record from my Mac's internal mic, but the only device listed when I used the "getDevices()" function(Ik I'm paraphrasing the function name) was "CoreAudio Default."

I know that CoreAudio is Apple's base audio system, but beyond that I have no idea what to do. Am I supposed to link SFML to the hardware using CoreAudio's API? Or is there something I'm missing to connect to the mic?

I would love access to the internal mic because I'm working on a 4-track recorder, and I know I can use external mic's, but I've used the internal mic on tons of garageband projects and it gives the user options instead of NEEDING an external mic.

Apparently CoreAudio is one of the most poorly documented libraries in the Mac world, so I'm hoping someone will know how to help me out!

Thanks in advance,

Jason

andrea99

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Getting access to internal mic on a Mac
« Reply #1 on: November 17, 2020, 10:49:41 pm »
Hello everyone,

I'm having the same issue and question. I cannot seem to be recording any audio from my Mac during SFML's SoundBufferRecorder and the only "available device" is this "CoreAudio Default".

Am I missing something?

Many thanks,

Andrea

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Getting access to internal mic on a Mac
« Reply #2 on: November 20, 2020, 12:29:36 pm »
So "internal mic" is just a loopback device for the mac audio output?

If it's not an actual microphone, then OpenAL might simply not detect it as such.
In case anyone wants to spend some time digging deeper on this, I'd start with OpenAL Soft and search whether other people have been able to get it work with the "internal mic" on macOS.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

andrea99

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Getting access to internal mic on a Mac
« Reply #3 on: November 20, 2020, 01:01:15 pm »
Thanks.

On my end I’ve plugged an external USB mic and now everything works as it should. That will do for me!

 

anything