Revision f77cdd7e
chunker_player/player_core.c | ||
---|---|---|
1 | 1 |
/* |
2 | 2 |
* Copyright (c) 2009-2011 Carmelo Daniele, Dario Marchese, Diego Reforgiato, Giuseppe Tropea |
3 |
* Copyright (c) 2010-2011 Csaba Kiraly |
|
3 | 4 |
* developed for the Napa-Wine EU project. See www.napa-wine.eu |
4 | 5 |
* |
5 | 6 |
* This is free software; see lgpl-2.1.txt |
... | ... | |
1231 | 1232 |
* Sleep two buffers' worth of audio before closing, in order |
1232 | 1233 |
* to allow the playback to finish. This isn't always enough; |
1233 | 1234 |
* perhaps SDL needs a way to explicitly wait for device drain? |
1235 |
* Doesn't seem to be necessary -> disabled |
|
1234 | 1236 |
*/ |
1235 |
int delay = 2 * 1000 * CurrentAudioSamples / CurrentAudioFreq; |
|
1237 |
//int delay = 2 * 1000 * CurrentAudioSamples / CurrentAudioFreq;
|
|
1236 | 1238 |
// printf("SDL_Delay(%d)\n", delay*10); |
1237 |
SDL_Delay(delay*10); |
|
1239 |
//SDL_Delay(delay*10);
|
|
1238 | 1240 |
} |
1239 | 1241 |
|
1240 | 1242 |
void ChunkerPlayerCore_Finalize() |
Also available in: Unified diff