Skip to content

AudioEngine's getDuration method always returns -1 #14297

Open
@netunlimited

Description

@netunlimited

Tested on iOS and on Android, with MP3 files.

Code:

auto snd = cocos2d::experimental::AudioEngine::play2d(filename);

float duration = cocos2d::experimental::AudioEngine::getDuration(snd);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions