Question / Help Does game audio work for anyone on Mac?

Cosmic Voyager

New Member
Greetings,

I have tried streaming a few games to Twitch. There is never any game audio.

I check "Inject", choose the game in the Application menu, and choose the game in the source menu.

Is there anything I am supposed to do to get game audio?

Thanks


02:10:08: OBS 0.9.1 (mac)
02:10:08: CPU Name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
02:10:08: CPU Speed: 2500MHz
02:10:08: Physical Cores: 2, Logical Cores: 4
02:10:08: Physical Memory: 16384MB Total
02:10:08: OS Name: Mac OS X (NSMACHOperatingSystem)
02:10:08: OS Version: Version 10.9.5 (Build 13F1077)
02:10:08: Kernel Version: 13.4.0
02:10:08: audio settings reset:
samples per sec: 44100
speakers: 2
buffering (ms): 1000

02:10:08: video settings reset:
base resolution: 1280x800
output resolution: 640x400
fps: 30/2
02:10:08: No blackmagic support
02:10:08: Failed to start search for DeckLink devices
02:10:10: output 'adv_stream' (rtmp_output) created
02:10:10: output 'adv_file_output' (flv_output) created
02:10:10: encoder 'streaming_h264' (obs_x264) created
02:10:10: encoder 'adv_aac0' (ffmpeg_aac) created
02:10:10: encoder 'adv_aac1' (ffmpeg_aac) created
02:10:10: encoder 'adv_aac2' (ffmpeg_aac) created
02:10:10: encoder 'adv_aac3' (ffmpeg_aac) created
02:10:10: service 'default_service' (rtmp_common) created
02:10:10: source 'Scene' (scene) created
02:10:10: source 'Display Capture' (display_capture) created
02:10:10: source 'Heroes of the Storm scene' (scene) created
02:10:10: Heroes of the Storm: Injected 'Heroes' (1678, 'com.blizzard.heroesofthestorm')
02:10:10: source 'Heroes of the Storm' (syphon-input) created
02:10:10: Heroes of the Storm: Injected server found: [Heroes] InjectedSyphon (info.v002.Syphon.C3BDFF18-D760-49AD-B272-5EE2E5AD2868)
02:10:10: Unexpected pixel format: 0 (
02:10:16: [x264 encoder: 'streaming_h264'] preset: veryfast
02:10:16: [x264 encoder: 'streaming_h264'] profile: main
02:10:16: [x264 encoder: 'streaming_h264'] settings:
bitrate: 1800
buffer size: 1800
fps_num: 30
fps_den: 2
width: 640
height: 400
keyint: 30
cbr: on
02:10:16: Using ffmpeg "aac" aac encoder
02:10:16: FFmpeg AAC: bitrate: 128, channels: 2
02:10:16: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-dfw.twitch.tv/app...
02:10:17: [rtmp stream: 'adv_stream'] Connection to rtmp://live-dfw.twitch.tv/app successful
 

ecarlstrom

New Member
SyphonInject is just for the video portion. In order to get the desktop audio to work properly, do the following:


1. Download Soundflower: https://rogueamoeba.com/freebies/soundflower/ and install it.
2. Open it (it's up on the system tray) and set whatever audio output you want to use (speakers, headphones, etc.) to go to "Soundflower (2ch)".
3. Go to System Preferences -> Sound -> Output and change this to "Soundflower (2ch)" as well.
4. In OBS, go to Audio and put "Soundflower (2ch)" as your Desktop Audio source Everything will start routing itself properly and you'll be able to hear the audio.

If you're using a program like Skype, make sure to do the same in Skype preferences as well, or else your viewers will just hear you speaking to no one.
 

Cosmic Voyager

New Member
Hey again. I fooled with this a long time and could not get it to work with 2ch, but it works with 64ch.

If I select 2ch in the Soundflower menu and in Audio in System Preferences, I get no sound through my speakers and OBS audio does not work.

If I select 6ch instead, I get sound as usual and OBS audio works.

Update:

If I turn both on then 2chan works also. So 64chan needs to be on for either one.
 
Last edited:

Cosmic Voyager

New Member
It is stickied. At the top of this forum.

I saw that. It says "desktop audio". I thought that was audio from an external device. I was searching for how to capture built-in audio. I did not know they were synonyms.

Update:

I read that. That says to use WavTap. I tried and I lose all sound.

eacarlstrom's are for SoundFlower, and it works if he just adds to turn on both 2chan and 64chan.
 
Last edited:

ecarlstrom

New Member
You don't need to turn on the 64ch one as well. Are you sure you didn't select the wrong source under your 2ch menu? For simple stream audio tasks, the 2 channels are more than enough, so you won't need to bother with the 16-channel version.

I've been using Soundflower for a while and never had to do this. Functionally, all that you're doing with Soundflower is taking your system's multiple audio outputs (games, music, Skype, etc.) and combining them into one output source that OBS can use as input. Soundflower is just the middle man, so you don't need to route the audio to different Soundflower sources in order to get it to work. Look at your settings and make sure there's not anything that you may have done incorrectly that may prevent the 2ch version from working properly.
 

keybounce

Member
If you have trouble with sound flower, there are other options.
1. Audio spider -- effectively, a version of sound flower with some bug fixes.
2. Jack -- routing audio on a per-application basis.

I personally use Jack; it's biggest limitation is that it won't work with any program that was started before the jack router was started. So, all the system stuff that starts up when you log in won't sound -- this includes time/date, some alerts, etc.
 
Top