Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Using the Audio Subsystem Object level API

    Spresense
    4
    6
    1685
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jolle last edited by

      I want to use the Audio Object level API to make a simple audio player. I have tried taking inspiration from the "audio_player" example but this uses the High Level API which makes it hard to understand the setup procedure for the Object level API.
      As i have understood it you need to create a "Audio Manager" and "Media Player Object" which then allows you to use the Object Level API commands to control the player.
      What setup is required to run the player via the Object Level API?

      Aditionally the documentation only seems to cover the audio player running a playlist. Is it possible to run single audio tracks without the use of a playlist, and how would this be achieved?

      J 1 Reply Last reply Reply Quote
      • J
        jens6151 0 1 1 @Jolle last edited by

        @Jolle Did you already find the Object level API examples?
        see audio_player_objif/audio_player_objif_main.c

        About the playlist I do not know.

        J 1 Reply Last reply Reply Quote
        • J
          Jolle @jens6151 0 1 1 last edited by

          @jens6151-0-1-1 Yes and it is helpful, however the similarity to the regular audio player example as well as the length makes it difficult to visualize what setup is acytually needed.

          C 1 Reply Last reply Reply Quote
          • C
            CamilaSouza DeveloperWorld @Jolle last edited by

            Hello, @Jolle

            Sorry about the delayed answer. I was away from the forum during march and I'm still catching up on older questions 🙂

            About the playlist, you don't need to use it.
            There is a config called CONFIG_AUDIOUTILS_PLAYLIST that enables the use of the playlist.
            Try disabling this config and specifying PLAYBACK_FILE_PATH in audio_player_main.cxx

            About the setup required for the Object Level API.
            Just a sanity check before we go any further.. did you read the documentation on the topic?
            https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_object_level_api
            Was the documentation not clear?
            Give me your feedback.

            J 1 Reply Last reply Reply Quote
            • J
              Jolle @CamilaSouza last edited by

              @CamilaSouza Yes the documentation was clear, i have since understood the required setup better 🙂

              1 Reply Last reply Reply Quote
              • T
                tanyamosley 0 1 last edited by

                @drift hunters I now have a better understanding of the essential configuration.

                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal