Closed
Bug 1349474
Opened 7 years ago
Closed 2 years ago
Support more AudioChannelLayoutTag than kAudioChannelLayoutTag_UseChannelDescriptions in cubeb_audiounit
Categories
(Core :: Audio/Video: cubeb, enhancement, P3)
Core
Audio/Video: cubeb
Tracking
()
RESOLVED
INVALID
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We only support kAudioChannelLayoutTag_UseChannelDescriptions in cubeb_audiounit.cpp[0] currently. We need to kAudioChannelLayoutTag_UseChannelBitmap and kAudioFormatProperty_ChannelLayoutForTag also. [0] http://searchfox.org/mozilla-central/rev/0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/media/libcubeb/src/cubeb_audiounit.cpp#1131 [1] http://searchfox.org/mozilla-central/rev/0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/dom/media/platforms/apple/AppleATDecoder.cpp#481
Assignee | ||
Comment 1•7 years ago
|
||
Need to figure out what cases we will get mChannelLayoutTag = kAudioChannelLayoutTag_UseChannelBitmap or kAudioFormatProperty_ChannelLayoutForTag. Maybe we need a device. The reference is [1] above.
Assignee: nobody → cchang
Updated•7 years ago
|
Rank: 25
Priority: -- → P2
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Hi jya, Do you know when |AudioChannelLayout->mChannelLayoutTag != kAudioChannelLayoutTag_UseChannelDescriptions|[0] is true? I mean, how to let the tag to be kAudioChannelLayoutTag_UseChannelBitmap or other values? [0] https://github.com/kinetiknz/cubeb/pull/276/commits/956ffbedd6d03b942c177f32015fd19e46a39074#diff-148fe3e6ebf13351ba4d886b1b4898d2R1139
Flags: needinfo?(jyavenard)
Comment 4•7 years ago
|
||
I don't know this structure, nor its member. gecko will always call cubeb with SMPTE channel layout.
Flags: needinfo?(jyavenard)
Comment 5•7 years ago
|
||
Should have read the code first I guess and that it's about AudioUnit. I haven't played with AudioUnit in years unfortunately, and my memory on the matter is rather fuzzy. It all depends on what audio card you will be using and if the user has defined a custom channel layout using the Audio MIDI Setup utility... You may want to ask your question in Apple's CoreAudio mailing list.
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #5) > Should have read the code first I guess and that it's about AudioUnit. > > I haven't played with AudioUnit in years unfortunately, and my memory on the > matter is rather fuzzy. > > It all depends on what audio card you will be using and if the user has > defined a custom channel layout using the Audio MIDI Setup utility... > > You may want to ask your question in Apple's CoreAudio mailing list. OK, thanks for your reply. If I find the answer, I'll also test similar code[0] using AudioChannelLayoutTag in gecko. [0] http://searchfox.org/mozilla-central/rev/0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/dom/media/platforms/apple/AppleATDecoder.cpp#481
Comment 7•7 years ago
|
||
(In reply to Chun-Min Chang[:chunmin] from comment #6) > (In reply to Jean-Yves Avenard [:jya] from comment #5) > > Should have read the code first I guess and that it's about AudioUnit. > > > > I haven't played with AudioUnit in years unfortunately, and my memory on the > > matter is rather fuzzy. > > > > It all depends on what audio card you will be using and if the user has > > defined a custom channel layout using the Audio MIDI Setup utility... > > > > You may want to ask your question in Apple's CoreAudio mailing list. > > OK, thanks for your reply. > > If I find the answer, I'll also test similar code[0] using > AudioChannelLayoutTag in gecko. > [0] > http://searchfox.org/mozilla-central/rev/ > 0079c7adf3b329bff579d3bbe6ac7ba2f6218a19/dom/media/platforms/apple/ > AppleATDecoder.cpp#481 That's a different thing altogether. Same constant name, but different use. It's for the decoder, and is already properly handled. This is to define when the codec explicitly defines a channel layout, this is used to convert to SMPTE. AAC can defined either a number of channels, or an explicit channel layout. AFAIK, only the Apple AAC decoder supports it.
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #7) > That's a different thing altogether. Same constant name, but different use. > It's for the decoder, and is already properly handled. This is to define > when the codec explicitly defines a channel layout, this is used to convert > to SMPTE. > > AAC can defined either a number of channels, or an explicit channel layout. > AFAIK, only the Apple AAC decoder supports it. Oh, I see. They should be totally unrelated. One gets the layout from decoder, and the other gets from underlying audio interface directly. Thanks!
Comment 9•7 years ago
|
||
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Assignee | ||
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•