moved code to pc_init(), dc_init()

This commit is contained in:
Max Kellermann
2008-08-26 08:45:14 +02:00
parent 5e51fa020d
commit e2c8b960de
8 changed files with 37 additions and 24 deletions

View File

@@ -18,7 +18,6 @@
#include "player_thread.h"
#include "player_control.h"
#include "playerData.h"
#include "decoder_control.h"
#include "audio.h"
#include "pcm_utils.h"
@@ -171,7 +170,7 @@ static void do_play(void)
{
int do_pause = 0;
int buffering = 1;
unsigned int bbp = buffered_before_play;
unsigned int bbp = pc.buffered_before_play;
enum xfade_state do_xfade = XFADE_UNKNOWN;
unsigned int crossFadeChunks = 0;
/** the position of the next cross-faded chunk in the next
@@ -277,7 +276,7 @@ static void do_play(void)
cross_fade_calc(pc.crossFade, dc.totalTime,
&(ob.audioFormat),
ob.size -
buffered_before_play);
pc.buffered_before_play);
if (crossFadeChunks > 0) {
do_xfade = XFADE_ENABLED;
nextChunk = -1;