Skip to main content

couple of audio playback questions

3 replies [Last post]
joshw
Offline
Joined: 2008-07-28

firstly, is there a way to control the panning of the primary audio stream? According to HD Cookbook, panningControl is only available to the secondary audio.

Secondly, is there a way to control the gain and panning for audio file playback. I'm currently using a JMF player instance to control play back, but would like to be able to control the level and send it through a specific channel.

Thanks,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice

Panning is only available on interactive and secondary audio and it
only works with mono audio.

You can control overall level of primary audio on 1.1 and 2.0 players
with PrimaryGainControl, but not per-channel level.

Cheers,
Joe

On May 1, 2009, at 11:19 AM, bd-j-dev@mobileandembedded.org wrote:

> firstly, is there a way to control the panning of the primary audio
> stream? According to HD Cookbook, panningControl is only available
> to the secondary audio.
>
> Secondly, is there a way to control the gain and panning for audio
> file playback. I'm currently using a JMF player instance to control
> play back, but would like to be able to control the level and send
> it through a specific channel.
>
> Thanks,
> [Message sent by forum member 'joshw' (joshw)]
>
> http://forums.java.net/jive/thread.jspa?messageID=344681
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

[att1.html]

joshw
Offline
Joined: 2008-07-28

thanks for the quick reply Joe. I'll do what I can w/ the 2nd audio and interactive sounds then.

Josh W

Joe Rice

Might also look into the mixing metadata that can be embedded in
secondary audio - it could be possible to use a dummy secondary audio
stream with mixing metadata to adjust individual channel levels of the
primary audio. You wouldn't be able to downmix into a specific
channel, and the metadata is linear and not interactive, but it does
offer a way to adjust individual primary audio channels.

That would be set in the secondary audio encoder.

Cheers,
Joe

On May 1, 2009, at 11:49 AM, bd-j-dev@mobileandembedded.org wrote:

> thanks for the quick reply Joe. I'll do what I can w/ the 2nd audio
> and interactive sounds then.
>
> Josh W
> [Message sent by forum member 'joshw' (joshw)]
>
> http://forums.java.net/jive/thread.jspa?messageID=344687

[att1.html]