patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

Audio - NULL Capture Device on Mac #353

Open gwio opened 7 months ago

gwio commented 7 months ago

Hi. I'm on OS 14.1.1 on a M2 air. When trying to run the audio examples I'm no longer able to route any audio source.

Loading capture device 0: NULL Capture Device

Tried both, compiling from scratch and the Homebrew version with no success.

Using ffmpeg -listdevice, I get the usual devices: [AVFoundation indev @ 0x12d605dc0] AVFoundation audio devices: [AVFoundation indev @ 0x12d605dc0] [0] Mikrofon von „Tel2“ [AVFoundation indev @ 0x12d605dc0] [1] BlackHole 2ch [AVFoundation indev @ 0x12d605dc0] [2] MacBook Air-Mikrofon [AVFoundation indev @ 0x12d605dc0] [3] Hauptgerät_

On compile textureStreamAudio.cpp is throwing a bunch of deprecation warnings.

jschmdt commented 2 months ago

Can confirm on Macbook Pro M3, OSX Sonoma 14.4.1, glslViewer 3.30

This affects audio as well as webcam video-input (will open a separate issue for this). EDIT: Here's the thread regarding video input #358

FFMPEG:

[AVFoundation indev @ 0x138005ea0] AVFoundation video devices:
[AVFoundation indev @ 0x138005ea0] [0] FaceTime HD-Kamera
[AVFoundation indev @ 0x138005ea0] [1] Capture screen 0
[AVFoundation indev @ 0x138005ea0] [2] Capture screen 1
[AVFoundation indev @ 0x138005ea0] AVFoundation audio devices:
[AVFoundation indev @ 0x138005ea0] [0] MacBook Pro-Mikrofon

Testing with glslViewer shows NULL:

glslViewer test_audio_spectogram.frag -l --audio

Capture devices available
0: NULL Capture Device
Loading capture device
0: NULL Capture Device