36#ifndef __INCLUDE_AUDIOLITE_STREAM_H
37#define __INCLUDE_AUDIOLITE_STREAM_H
43#include <nuttx/config.h>
47#include <mossfw/mossfw_lock.h>
48#include <audiolite/al_memalloc.h>
63 virtual int rfile(
const char *fname) = 0;
64 virtual int wfile(
const char *fname) = 0;
66 virtual void close() = 0;
67 virtual int filesize() = 0;
68 virtual int seek(
int size) = 0;
69 virtual int seekcur(
int size) = 0;
70 virtual int seekend(
int size) = 0;
71 virtual bool has_file() = 0;
73 virtual int read_data(
void *data,
int sz,
int toms) = 0;
74 virtual int write_data(
void *data,
int sz,
int toms) = 0;
75 virtual int receive_data(
audiolite_mem *mem,
int ofst,
int toms) = 0;
76 virtual int send_data(
audiolite_mem *mem,
int ofst,
int toms) = 0;
90 int open_file(
const char *fname,
const char *flg);
95 mossfw_lock_init(&_lock);
99 int rfile(
const char *fname);
100 int wfile(
const char *fname);
101 int set_file(FILE *fp);
106 int seekcur(
int size);
107 int seekend(
int size);
110 int read_data(
void *data,
int sz,
int toms);
111 int write_data(
void *data,
int sz,
int toms);
Definition: al_stream.h:84
Definition: al_memalloc.h:111
Definition: al_stream.h:59