这是indexloc提供的服务,不要输入任何密码
Skip to content

Seeking forward in MIDI files doesn't resend PROGRAM CHANGE events #704

@loki666

Description

@loki666

Version

Media3 pre-release (alpha, beta or RC not in this list)

More version details

release-1.2.0-alpha01

Devices that reproduce the issue

Not device specific, so emulator, Pixel etc...

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

Using demo app with MidiExtract and MidiRenderer
Open a MIDI file
Seek forward in the file, and all channels are reset to default program (usually Piano)
Seek backward in the file, and all channels are properly configured back.

I've put some logs, and it seems indeed, that when seeking forward, MidiDecoder reset the Synthesizer but never sends the PROGRAM CHANGES events, but does so when seeking backward.

Expected result

MIDI channels are properly configured back after seeking forward

Actual result

MIDI channels are reset to default program (Piano) after seeking forward

Media

Not applicable, any MIDI file should expose the issue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions