diff options
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r-- | apps/pcmbuf.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index aa30c64912..55a364b1be 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c | |||
@@ -1275,6 +1275,23 @@ void pcmbuf_soft_mode(bool shhh) | |||
1275 | } | 1275 | } |
1276 | 1276 | ||
1277 | 1277 | ||
1278 | /** Time and position */ | ||
1279 | |||
1280 | /* Return the current position key value */ | ||
1281 | unsigned int pcmbuf_get_position_key(void) | ||
1282 | { | ||
1283 | return position_key; | ||
1284 | } | ||
1285 | |||
1286 | /* Set position updates to be synchronous and immediate in addition to during | ||
1287 | PCM frames - cancelled upon first codec insert or upon stopping */ | ||
1288 | void pcmbuf_sync_position_update(void) | ||
1289 | { | ||
1290 | pcmbuf_sync_position = true; | ||
1291 | } | ||
1292 | |||
1293 | |||
1294 | |||
1278 | /** Misc */ | 1295 | /** Misc */ |
1279 | 1296 | ||
1280 | bool pcmbuf_is_lowdata(void) | 1297 | bool pcmbuf_is_lowdata(void) |
@@ -1291,16 +1308,3 @@ void pcmbuf_set_low_latency(bool state) | |||
1291 | { | 1308 | { |
1292 | low_latency_mode = state; | 1309 | low_latency_mode = state; |
1293 | } | 1310 | } |
1294 | |||
1295 | /* Return the current position key value */ | ||
1296 | unsigned int pcmbuf_get_position_key(void) | ||
1297 | { | ||
1298 | return position_key; | ||
1299 | } | ||
1300 | |||
1301 | /* Set position updates to be synchronous and immediate in addition to during | ||
1302 | PCM frames - cancelled upon first codec insert or upon stopping */ | ||
1303 | void pcmbuf_sync_position_update(void) | ||
1304 | { | ||
1305 | pcmbuf_sync_position = true; | ||
1306 | } | ||