3a1893ba7e
Previously, if the read bytes were less than the requested, the file was closed immediately. This behavior, however, does not consider the fact that the read operation may be blocking when no bytes are available at the moment. That is true for a named pipe (FIFO), for instance. Thus, reading it again lets to the underlying file system the decision of 1) blocking until bytes become available or 2) return 0 immediately (the case for actual files) or 3) read available bytes. |
||
---|---|---|
.. | ||
Kconfig | ||
Make.defs | ||
Makefile | ||
nxplayer_common.c | ||
nxplayer_main.c | ||
nxplayer_mp3.c | ||
nxplayer.c | ||
README.md |
System / nxplayer
NXPlayer
Author: Ken Pettit
Date: 11 Sept 2013
This application implements a command-line media player which uses the NuttX
Audio system to play files (mp3
, wav
, etc.) from the file system.
Usage:
nxplayer
The application presents an command line for specifying player commands, such as
play filename
, pause
, volume 50%
, etc.