aboutsummaryrefslogtreecommitdiff
path: root/utils/tinyplay.c
AgeCommit message (Collapse)Author
2020-11-02calcuate the thresholds after options parsingdvdli
The period size and count may be changed after options parsing. We need to set proper threshoulds.
2020-11-02modify the buffer size to the period size to avoid underrundvdli
2020-10-29check whether the audio data are still enough to playdvdli
reference: https://android.googlesource.com/platform/external/tinyalsa/+/8b7274b2ec686c87673bf39328381acbdea1a333 commit 8b7274b2ec686c87673bf39328381acbdea1a333 author Haynes Mathew George <hgeorge@codeaurora.org> tinyplay: play PCM up to size specified in the header tinyplay plays to the end of file without checking whether playback goes beyond end of data section which its size is specified in the RIFF wave header. This could lead to playing out unwanted data which is placed at the end of file. authored-by: Patrick Lai <plai@codeaurora.org> Change-Id: I17bd3f6ebca4813f8987585472208c1f52696cae
2020-10-29AOSP CL "tinyalsa: fix typos in tinyplay and asoundlib.h"dvdli
commit f451f433520fc154de6e371747f21d2f746da83b author Glenn Kasten <gkasten@google.com> tinyalsa: fix typos in tinyplay and asoundlib.h Test: run tinyplay and look for typos in the output Change-Id: Ieedcc1b7610700aa3d5ff913d5c01105db2c1601
2020-10-28initialize silence_size to zerodvdli
2020-06-03tinyplay: replace manual option parsing with optparseEthan Sommer
This also removes the requirement for the file argument to come before options.
2020-04-24Waiting for PCM to finish before exitingTaylor Holberton
2020-04-22Removed whitespaceTaylor Holberton
2019-05-23Fix typo in -D and -d options descriptionsjcromero
2017-12-15Added reading from stdin.Magickal Feline
2017-11-06fixed short option in tinyplayTaylor Holberton
2017-04-13Fix to pass num_frames to pcm_writeiJaikrishna Nemallapudi
pcm_writei expects size of data in frames, whereas currently size is passed as number of bytes. So convert number of bytes to frames for argument to pcm_writei. Signed-off-by: Jaikrishna Nemallapudi <jaikrishnax.nemallapudi@intel.com> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
2016-12-01Replaced old calls to pcm_read and pcm_writeTaylor Holberton
The newer pcm_readi and pcm_writei functions are now being used.
2016-11-19created cmd and ctx structures for tinyplayTaylor Holberton
2016-10-02added error if -i file-type doesn't make senseTaylor Holberton
2016-10-01checking results of fread() callsTaylor Holberton
2016-10-01put programs into utils dirTaylor Holberton