summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 378197bcb3..90c66b453b 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -31,7 +31,6 @@
#include "options/options.h"
#include "options/m_config.h"
-#include "osdep/timer.h"
#include "common/msg.h"
#include "common/common.h"
#include "common/global.h"
@@ -309,22 +308,11 @@ void ao_resume(struct ao *ao)
ao->api->resume(ao);
}
-// Be careful with locking
-void ao_wait_drain(struct ao *ao)
-{
- // This is probably not entirely accurate, but good enough.
- mp_sleep_us(ao_get_delay(ao) * 1000000);
- ao_reset(ao);
-}
-
// Block until the current audio buffer has played completely.
void ao_drain(struct ao *ao)
{
- if (ao->api->drain) {
+ if (ao->api->drain)
ao->api->drain(ao);
- } else {
- ao_wait_drain(ao);
- }
}
bool ao_eof_reached(struct ao *ao)