Skip to content

Commit 665cd07

Browse files
system/nxplayer: Use decoder callbacks for WAV playback
Signed-off-by: Megha Rajput <i.meghar.2408@gmail.com>
1 parent 8f789a4 commit 665cd07

2 files changed

Lines changed: 247 additions & 92 deletions

File tree

‎include/system/nxplayer.h‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@
4141
* Public Type Declarations
4242
****************************************************************************/
4343

44+
struct nxplayer_s;
45+
4446
struct nxplayer_dec_ops_s
4547
{
4648
int format;
47-
CODE int (*pre_parse)(int fd, FAR uint32_t *samplerate,
48-
FAR uint8_t *chans, FAR uint8_t *bps);
49-
CODE int (*fill_data)(int fd, FAR struct ap_buffer_s *apb);
49+
CODE int (*pre_parse)(FAR struct nxplayer_s *pplayer, int fd,
50+
FAR uint32_t *samplerate,
51+
FAR uint8_t *chans, FAR uint8_t *bps,
52+
FAR int *subfmt);
53+
CODE int (*fill_data)(FAR struct nxplayer_s *pplayer, int fd,
54+
FAR struct ap_buffer_s *apb);
5055
};
5156

5257
struct nxplayer_tone_s

0 commit comments

Comments
 (0)