SFML community forums

Help => Audio => Topic started by: jasonnelson618 on December 03, 2018, 08:16:25 pm

Title: Getting access to internal mic on a Mac
Post by: jasonnelson618 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
Title: Re: Getting access to internal mic on a Mac
Post by: andrea99 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
Title: Re: Getting access to internal mic on a Mac
Post by: eXpl0it3r 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.
Title: Re: Getting access to internal mic on a Mac
Post by: andrea99 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!