| 2240 | } |
| 2241 | |
| 2242 | void bark_free(struct bark_context* bctx) { |
| 2243 | if (!bctx) { |
| 2244 | return; |
| 2245 | } |
| 2246 | |
| 2247 | encodec_free(bctx->encodec_ctx); |
| 2248 | |
| 2249 | bark_free_model(&bctx->text_model.semantic_model); |
| 2250 | bark_free_model(&bctx->text_model.coarse_model); |
| 2251 | bark_free_model(&bctx->text_model.fine_model); |
| 2252 | |
| 2253 | delete bctx; |
| 2254 | } |
| 2255 | |
| 2256 | struct bark_context_params bark_context_default_params() { |
| 2257 | struct bark_context_params result = { |
nothing calls this directly
no test coverage detected