Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer gstreamer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 672
    • Issues 672
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 354
    • Merge requests 354
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamergstreamer
  • Issues
  • #921

Closed
Open
Created Dec 12, 2021 by Alexander Kruglov@alex_circle

LDAC decoding support

There is LDAC decoder library on GitHub: https://github.com/anonymix007/libldacdec

BlueALSA already has support for LDAC sink using this library.
Here's the API description:
int ldacdecInit(ldacdec_t *this); - initializes the decoder structure
int ldacDecode_type(ldacdec_t *this, uint8_t *stream, void *pcm, int *bytesUsed, LDACBT_SMPL_FMT_T fmt); - decodes packets to PCM (16/32 bit integers and 32 bit floats are supported)
int ldacdecGetSampleRate(ldacdec_t *this); - retrieve sample rate of decoded stream
int ldacdecGetChannelCount(ldacdec_t *this); - retrieve channel count in decoded stream
Sample count may be retrieved via dec.frame.frameSamples there dec is declared as follows: ldacdec_t dec;.

Edited Dec 12, 2021 by Alexander Kruglov
Assignee
Assign to
Time tracking