fadingred / libgpod

Other
35 stars 15 forks source link

add audio file to iphone #2

Open showman123 opened 9 years ago

showman123 commented 9 years ago

Hi sr, I found a function named itdb_track_add for adding music to iphone but don't know what parameter i have to pass in it.Please guid me. Thank you

showman123 commented 9 years ago

Hi sr, I found a code libgpod for window on "http://code.h4ck.org.cn/libgpod-0.8.3-for-windows/commits/eb79f9b207325d974ab024ea99a9ee31#comment-1376822" .When i run this code i got an error "access voilation" in line ret=inflate(&strm); of function zlib_inflate(gchar outbuf, gchar zdata, gsize compressed_size, gsize *uncompressed_size);

static int zlib_inflate(gchar _outbuf, gchar zdata, gsize compressed_size, gsize uncompressedsize) { .......................... / allocate inflate state _/ strm.zalloc = Z_NULL; strm.zfree = Z_NULL; strm.opaque = Z_NULL; /_source=fopen("E:\iTunesCDB","rb"); if(source!=NULL) { bingo=0; } strm.avail_in=(uInt)fread(in, 1, CHUNK, source);*/ strm.avail_in = 0;

strm.next_in = Z_NULL;
strm.next_out=Z_NULL;
ret=0;
ret = inflateInit(&strm);
if (ret != Z_OK)
    return ret;
 ...........

}

Please help me to find me out what i am doing wrong