forked from len0rd/rockbox
Make buffering initialization versus reset separate functions to avoid double initializing threads or mutexes more easily
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15327 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
404c6fbdb2
commit
14b6f437bb
3 changed files with 24 additions and 19 deletions
|
|
@ -3067,7 +3067,7 @@ static void audio_reset_buffer(void)
|
|||
will already be line aligned */
|
||||
filebuflen &= ~3;
|
||||
|
||||
buffering_init(filebuf, filebuflen);
|
||||
buffering_reset(filebuf, filebuflen);
|
||||
|
||||
/* Clear any references to the file buffer */
|
||||
buffer_state = BUFFER_STATE_INITIALIZED;
|
||||
|
|
@ -3361,6 +3361,9 @@ void audio_init(void)
|
|||
/* Set crossfade setting for next buffer init which should be about... */
|
||||
pcmbuf_crossfade_enable(global_settings.crossfade);
|
||||
|
||||
/* initialize the buffering system */
|
||||
|
||||
buffering_init();
|
||||
/* ...now! Set up the buffers */
|
||||
audio_reset_buffer();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue