syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.94k stars 821 forks source link

how to use passthrough demo two earphones playing at the same time #322

Closed wstcyx closed 8 years ago

wstcyx commented 8 years ago

Hi, can someone help me with this problem? For passthrough implementation, with the default output overridden via microphone.output = speaker and with a mono source attached to the EZMicrophone, I can only hear audio in the left channel, and not both channels. A recorded mono segment plays properly on both channels via EZAudioOutput. Anyone have an idea how to get passthrough to work with both channels? Thanks!

wstcyx commented 8 years ago

help~

wstcyx commented 8 years ago

found answer // [[EZMicrophone sharedMicrophone] setOutput:[EZOutput sharedOutput]];

[EZOutput sharedOutput].dataSource = [EZMicrophone sharedMicrophone];