| 56 | } |
| 57 | |
| 58 | void Delete(HCodecContext context) |
| 59 | { |
| 60 | uint32_t n = context->m_DecodersPool.Remaining() - context->m_DecodersPool.Capacity(); |
| 61 | if (n > 0) { |
| 62 | dmLogError("Dangling decoders in codec context (%d)", n); |
| 63 | } |
| 64 | delete context; |
| 65 | } |
| 66 | |
| 67 | Result NewDecoder(HCodecContext context, Format format, dmSound::HSoundData sound_data, HDecoder* decoder) |
| 68 | { |