FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

OpenSL ES AudioStream.getBufferSizeInFrames() returns 0 when callback not used · Issue #1581 · google/oboe · GitHub

/ oboe Public

OpenSL ES AudioStream.getBufferSizeInFrames() returns 0 when callback not used #1581

Description

Android version(s): ALL
Android device(s): ALL
Oboe version: Latest
App name used for testing: UnitTestRunner

Below is a very basic test that fails on all devices on all Android versions:

TEST_F(StreamOpenOutput, OutputForOpenSLESPerformanceModeNoneGetBufferSizeInFrames){
    mBuilder.setPerformanceMode(PerformanceMode::None);
    mBuilder.setAudioApi(AudioApi::OpenSLES);
    ASSERT_TRUE(openStream());
    EXPECT_GT(mStream->getBufferSizeInFrames(), 0);
    ASSERT_TRUE(closeStream());
}

When callbacks are not used, getBufferSizeInFrames() returns 0. This in return causes writing to the stream to never actually write.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1high prioritybug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL