Use this one which takes a callback that is called whenever more data is necessary:
s32 MP3Player_PlayFile(void *cb_data,s32 (*reader)(void *,void *,s32),void (*filterfunc)(struct mad_stream *,struct mad_frame *));
int mp3Reader(void *cbdata, void *dst, int size) {
FILE *file = cbdata;
return ...
Search found 3 matches
- Mon Nov 10, 2014 4:22 am
- Forum: Gamecube/Wii Development
- Topic: Streaming music off of mp3/ogg files
- Replies: 1
- Views: 8262
- Mon Jul 07, 2014 10:03 am
- Forum: Bug Reports
- Topic: [devkitppc/libogc/GameCube] lwIP broken
- Replies: 2
- Views: 11011
Re: [devkitppc/libogc/GameCube] lwIP broken
MQ_Send has issues in network.c, I've made these changes locally and it's working fine.
@@ -666,11 +666,11 @@ static u8_t recv_raw(void *arg,struct raw_pcb *pcb,struct pbuf *p,struct ip_addr
buf->fromport = pcb->protocol;
conn->recvavail += p->tot_len;
if(conn->callback)
(*conn->callback ...
@@ -666,11 +666,11 @@ static u8_t recv_raw(void *arg,struct raw_pcb *pcb,struct pbuf *p,struct ip_addr
buf->fromport = pcb->protocol;
conn->recvavail += p->tot_len;
if(conn->callback)
(*conn->callback ...
- Thu Jun 19, 2014 11:36 pm
- Forum: Bug Reports
- Topic: [devkitppc/libogc/GameCube] lwIP broken
- Replies: 2
- Views: 11011
[devkitppc/libogc/GameCube] lwIP broken
lwIP is broken at the moment due to "recent" queue changes. Please fix as the BBA is not usable at all on the latest libOGC.