So it can be shared with the iot/ variant I refactored it into the
audioplay.h file. This keeps all of the audio code local, we could hide
the functions and only expose the callback but that would make testing
harder.
Test: Ran a bootanimation.zip with audio.wav on Marlin, works as expected.
Bug: 67051984
Change-Id: Ie31dc5f2cfaad5bb23134ef81be712afa6b3cd6f
Manually handle the 1-2 channel cases to avoid the warning
log when 0 is passed as the channelMask.
Bug: 30820152
Change-Id: I4d2c8736ff442fae9a4c5eb16061646fb53151b6
Do not use low latency playback mode to be more
robust against scheduling problems during boot phase.
Also:
- remove unused reverb on output mix
- fix WAV file parser.
Bug: 30277818
Change-Id: I1e15d3003a25c93d4995006885b32a754d17343f
audioplay is initialized with an example of the type of clip it
will play.
Also remove asserts and debug compile settings from BootAnimation.
BUG:24800792
Change-Id: Icb78489417aee0549c340c746b25e57ccdb3427e
Respects dnd settings for sound playback.
Basic implementation uses in-memory wavs as buffers.
audioplay::playClip should not be called before previous clip ends.
Updated FORMAT.md to reflect no more audio_conf.txt
Bug: 29055299
Change-Id: Ifc358d7c85f11b8b54ae6446c40643b87bc567f2