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
-
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?
-
@Jolle Did you already find the Object level API examples?
see audio_player_objif/audio_player_objif_main.cAbout the playlist I do not know.
-
@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.
-
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.cxxAbout 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. -
@CamilaSouza Yes the documentation was clear, i have since understood the required setup better
-
@drift hunters I now have a better understanding of the essential configuration.