Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: bengris32 <[email protected]>
  • Loading branch information
bengris32 committed Aug 25, 2023
0 parents commit 3459a14
Show file tree
Hide file tree
Showing 9 changed files with 3,272 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/*
*/*.o
*.o
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CROSS_COMPILE ?= mipsel-openipc-linux-musl-
CC = $(CROSS_COMPILE)gcc
CFLAGS = -fno-pie -Isrc/include
LDFLAGS = -s
LIBS = lib/libmp3lame.a lib/libimp.a lib/libalog.a

SRCS = src/player.c
OBJS = $(SRCS:.c=.o)

all: audioplayer

audioplayer: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<

clean:
rm -f $(OBJS) audioplayer
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# audioplayer for Ingenic platform

libmp3lame (3.100) was cross compiled with toolchain `mipsel-openipc-linux-musl`,
use options `--host=mipsel-openipc-linux-musl --enable-static --disable-shared --disable-frontend --disable-gtktest`

To build the program, run:
```
$ make
```

To clean build objects, run:
```
$ make clean
```

# Usage
Usage is equivalent to audioplayer for hisi platforms, use:
```
cat audio.mp3 | audioplayer
```
Binary file added lib/libalog.a
Binary file not shown.
Binary file added lib/libimp.a
Binary file not shown.
Binary file added lib/libmp3lame.a
Binary file not shown.
Loading

0 comments on commit 3459a14

Please sign in to comment.