2022-08-15 04:20:27 -05:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright 2015-2019 BES.
|
|
|
|
* All rights reserved. All unpublished rights reserved.
|
|
|
|
*
|
|
|
|
* No part of this work may be used or reproduced in any form or by any
|
|
|
|
* means, or stored in a database or retrieval system, without prior written
|
|
|
|
* permission of BES.
|
|
|
|
*
|
|
|
|
* Use of this work is governed by a license granted by BES.
|
|
|
|
* This work contains confidential and proprietary information of
|
|
|
|
* BES. which is protected by copyright, trade secret,
|
|
|
|
* trademark and other intellectual property rights.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef __APP_RING_MERGE_H__
|
|
|
|
#define __APP_RING_MERGE_H__
|
|
|
|
|
2023-02-01 14:52:54 -06:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-08-15 04:20:27 -05:00
|
|
|
enum APP_RING_MERGE_PLAY_T {
|
2023-02-01 14:52:54 -06:00
|
|
|
APP_RING_MERGE_PLAY_ONESHOT = 0,
|
|
|
|
APP_RING_MERGE_PLAY_PERIODIC,
|
2022-08-15 04:20:27 -05:00
|
|
|
|
2023-02-01 14:52:54 -06:00
|
|
|
APP_RING_MERGE_PLAY_QTY = 0xff
|
2022-08-15 04:20:27 -05:00
|
|
|
};
|
|
|
|
|
2023-02-01 14:52:54 -06:00
|
|
|
#define PENDING_TO_STOP_A2DP_STREAMING 0
|
|
|
|
#define PENDING_TO_STOP_SCO_STREAMING 1
|
2022-08-15 04:20:27 -05:00
|
|
|
|
|
|
|
uint32_t app_ring_merge_more_data(uint8_t *buf, uint32_t len);
|
|
|
|
|
2023-02-01 14:52:54 -06:00
|
|
|
int app_ring_merge_setup(int16_t *buf, uint32_t len,
|
|
|
|
enum APP_RING_MERGE_PLAY_T play);
|
2022-08-15 04:20:27 -05:00
|
|
|
|
|
|
|
int app_ring_merge_init(void);
|
|
|
|
|
|
|
|
int app_ring_merge_deinit(void);
|
|
|
|
|
|
|
|
int app_ring_merge_start(void);
|
|
|
|
|
|
|
|
int app_ring_merge_stop(void);
|
|
|
|
|
|
|
|
bool app_ring_merge_isrun(void);
|
|
|
|
|
2023-02-01 14:52:54 -06:00
|
|
|
void app_ring_merge_save_pending_start_stream_op(uint8_t pendingStopOp,
|
|
|
|
uint8_t deviceId);
|
2022-08-15 04:20:27 -05:00
|
|
|
|
|
|
|
#endif
|