-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apps: add Auracast USB sample with LC3 codec #1659
Conversation
0a75ddf
to
9c91f10
Compare
9c91f10
to
8668c54
Compare
@sjanc apache/mynewt-core#3121 patch was merged and this builds now, can I merge this PR? |
8668c54
to
2a1ef73
Compare
@andrzej-kaczmarek removed unused and debug code, added serial ID config |
2a1ef73
to
fccc2bf
Compare
apps/auracast_usb/syscfg.yml
Outdated
BLE_MAX_BIG: 1 | ||
BLE_MAX_BIS: 2 | ||
|
||
BLE_PHY_NRF52_HEADERMASK_WORKAROUND: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is only valid for nrf52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved under syscfg.vals.BSP_NRF52:
|
||
#define BROADCAST_SID 1 | ||
#define BROADCAST_SDU_INTVL MYNEWT_VAL(LC3_FRAME_DURATION) | ||
#define BROADCAST_SAMPLE_RATE BLE_AUDIO_SAMPLING_RATE_48000_HZ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should depend on lc3 configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added separate defines for BLE_AUDIO_SAMPLING_RATE_24000_HZ
, BLE_AUDIO_SAMPLING_RATE_48000_HZ
and BLE_AUDIO_SAMPLING_RATE_96000_HZ
. I feel like we should have some kind of macro that translates sampling rate from number value to the spec, but this can be done in separate PR
eed8067
to
b7ad5c2
Compare
776ade7
to
a8ea520
Compare
a8ea520
to
694e65c
Compare
This adds sample that acts as USB sound device. Audio signal is coded using LC3 and broadacasted using Auracast package.
Adds build target for auracast_usb application.
Cortex M-33 FPU doesn't support double precision arithmetic. Use float instead of double so the performance can be improved. This allows to use better interpolator in resampler.
Compile using floats instead of doubles, so the FPUs that don't support double-precision arithmetic can be used.
694e65c
to
0f27618
Compare
This needs libsamplerate patch to work properly: libsndfile/libsamplerate#210 |
This adds sample that acts as USB sound device. Audio signal is coded using LC3 and broadacasted using Auracast package.