Closed Bug 910875 Opened 11 years ago Closed 11 years ago

Use WEBRTC_LINUX codepaths in audio_device_impl.cc for BSD

Categories

(Core :: WebRTC: Audio/Video, defect)

x86_64
OpenBSD
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: gaston, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Seems this was an oversight in bug 807492 .. at runtime, audio device just blows:

MEMORY    ; (21:56:35:458 |    0) AUDIO DEVICE:         -1;1816957440; AudioDeviceBuffer created
MEMORY    ; (21:56:35:458 |    0) AUDIO DEVICE:    1    99;1816957440; AudioDeviceModuleImpl created
DEBUGINFO ; (21:56:35:458 |    0) AUDIO DEVICE:    1    99;1816957440; CheckPlatform
CRITICAL  ; (21:56:35:458 |    0) AUDIO DEVICE:    1    99;1816957440; current platform is not supported => this module will self destruct!
MEMORY    ; (21:56:35:458 |    0) AUDIO DEVICE:    1    99;1816957440; ~AudioDeviceModuleImpl destroyed
MEMORY    ; (21:56:35:458 |    0) AUDIO DEVICE:         -1;1816957440; ~AudioDeviceBuffer destroyed

and segfaults later on... indeed, audio_device_impl.cc never got some WEBRTC_BSD love.
Fwiw, i'm also trying to disentangle globally having --enable-pulseaudio (for everything in mozilla) and using pulseaudio _only_ in webrtc. I dont want to use pulse for firefox itself, we have an sndio cubeb backend.
(In reply to Landry Breuil (:gaston) from comment #1)
> Fwiw, i'm also trying to disentangle globally having --enable-pulseaudio
> (for everything in mozilla) and using pulseaudio _only_ in webrtc. I dont
> want to use pulse for firefox itself, we have an sndio cubeb backend.

Why not write sndio audio_device backend? Or port alsa-lib to OpenBSD?
Blocks: 807492, 844818
Whiteboard: [leave open]
Attached patch missed (obsolete) — Splinter Review
A few ifdefs were forgotten since audio_device diff in bug 807492 and
bug 844818 changed -DWEBRTC_LINUX hack in .gypi to #ifdef WEBRTC_BSD.
Attachment #797810 - Flags: review?(rjesup)
Attachment #797810 - Attachment is obsolete: true
Attachment #797810 - Flags: review?(rjesup)
Attached patch try #2Splinter Review
dummy change is to fix bug 844818 comment 26 but on BSD
Attachment #797819 - Flags: review?(rjesup)
Attachment #797819 - Flags: review?(rjesup) → review+
Blocks: 911450
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [leave open]
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: