forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amend AudioSampleBufferConverter to support various encoder options
https://bugs.webkit.org/show_bug.cgi?id=284355 rdar://141204354 Reviewed by NOBODY (OOPS!). Add support for passing various encoder options to the AudioSampleBufferConverter's AudioConverter. The size of the compressed packet is determined by setting the AudioStreamBasicDescription's mFramesPerPacket. Tests to follow as part of the WebCodec's WPT. No change of behaviours at this stage. * Source/WebCore/platform/audio/cocoa/AudioSampleBufferConverter.h: (WebCore::AudioSampleBufferConverter::preSkip const): Add method to retrieve the preSkip value after creating the AudioConverter. Will be used to create the Opus's codec description. * Source/WebCore/platform/audio/cocoa/AudioSampleBufferConverter.mm: (WebCore::AudioSampleBufferConverter::initAudioConverterForSourceFormatDescription):
- Loading branch information
Showing
2 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters