mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-23 09:03:44 +08:00
Sound refactor (#1589)
* Soud refactor
* remove files from files_common
* add timeout to set_volumn
* add param volume to init
* done
* test.cc
* fix typo
* add repeat param instead of loop
* revert submodule
* add member function currentSound
* remove function create_player from class member
* fix build error
fix repeat
* rename CHECK_RESULT to ReturnOnError
* set currentSound_ before posible err
* use std::map to initialize sound table
cleanup
cleanup
cleanup
fix bug in stop
change paramater name
* done
* remove function CreatePlayer, create player in init()
* resolve conflict
* remove sound test
* rebase
* remove whitespace
* Apply great review suggestion
* use player's SLVolumeItf interface to set volume
* use float
* leave the volume control the way it is
old-commit-hash: 8cacc14b31
This commit is contained in:
@@ -4,7 +4,7 @@ src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c']
|
||||
libs = [common, 'zmq', 'czmq', 'capnp', 'kj', 'm', cereal, messaging, gpucommon, visionipc]
|
||||
|
||||
if arch == "aarch64":
|
||||
src += ['sound.cc', 'slplay.c']
|
||||
src += ['sound.cc']
|
||||
libs += ['EGL', 'GLESv3', 'gnustl_shared', 'log', 'utils', 'gui', 'hardware', 'ui', 'CB', 'gsl', 'adreno_utils', 'OpenSLES', 'cutils', 'uuid', 'OpenCL']
|
||||
linkflags = ['-Wl,-rpath=/system/lib64,-rpath=/system/comma/usr/lib']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user