MeteorStudioASU / lcc

LCC (Localization Cue Correction) is a solution for spatialized audio through stereo speakers. LCC is a lightweight implementation of crosstalk cancellation so your left ear hears the left channel of audio, and your right ear hears the right channel of audio while ensuring unwanted audio signal coloration is mitigated.
MIT License
179 stars 13 forks source link

Input after config broken on macOS #9

Open enjikaka opened 4 years ago

enjikaka commented 4 years ago

Thanks for this really cool project. This actually takes my 200 kr (~20 USD/EUR) cheap speakers to a whole new level!

Ran into this issue though. After I've choosen sound in/outputs and sample rate I'm left with

LCC ON... press 1 to turn LCC on, 2 to turn LCC off, 3 to change settings, 4 to quit.

but from here on the program does not accept any keyboard input. Typing 1, 2, 3 or 4 does nothing.

Whole command line output if needed;

./lcc
./rt_lcc {inputgain} {centergain} {endgain} {LCC_Decaygain} {LCC_Delay_in_microseconds}
version 0.8
Did not receive 6 arguments. Using defaults: ./lcc -3 -3 3 -2.5 32
0:Apple Inc.: DELL P2715Q, rates:32000,44100,48000,88200,96000
1:Apple Inc.: Built-in Microphone, rates:44100,48000,88200,96000
2:Apple Inc.: Built-in Output, rates:44100,48000,96000
3:ma++ ingalls for Cycling '74: Soundflower (2ch), rates:44100,48000,88200,96000,176400,192000
4:ma++ ingalls for Cycling '74: Soundflower (64ch), rates:44100,48000,88200,96000,176400,192000
Select Input Device: 3
Select Output Device: 0
Select Sample Rate: 44100
input gain: 0.700000
center channel gain: 0.700000
LCC decay gain: 0.749894
LCC delay in us: 32.000000
LCC delay in samples: 1.411200
Debug only: delaymod: 0.588800
Debug only: delaymodinv: 0.411200
Debug only: bufferframes: 2048

LCC ON... press 1 to turn LCC on, 2 to turn LCC off, 3 to change settings, 4 to quit.
LionsAd commented 4 years ago

FWIW - input when run from Terminal works fine for me, but I had to recompile it, too.