Re: [mpg123-devel] Code example of mpg123_index and mpg123_set_index
Brought to you by:
sobukus
From: Thomas O. <tho...@or...> - 2018-09-29 19:58:48
|
Am Sat, 29 Sep 2018 16:45:28 +0200 schrieb "Sven Baus" <s.b...@gm...>: > So I think the following code should work, correct? > > off_t* pIndex; > off_t* pStep; > size_t* pFill; > > mpg123_index(pHandle,pIndex,pStep,pFill); Not quite. More like this: off_t* pIndex; off_t pStep; size_t pFill; mpg123_index(pHandle,&pIndex,&pStep,&pFill); The difference is crucial and explains access violations. You see use of this in src/term.c, in print_index() (and yes, the printing formats there should not just cast things to long, other parts of mpg123 do better). Alrighty then, Thomas |