| 2568 | } |
| 2569 | |
| 2570 | const char* hb_audio_dither_get_description(int method) |
| 2571 | { |
| 2572 | if (method < hb_audio_dithers_first_item->method || |
| 2573 | method > hb_audio_dithers_last_item ->method) |
| 2574 | goto fail; |
| 2575 | |
| 2576 | const hb_dither_t *audio_dither = NULL; |
| 2577 | while ((audio_dither = hb_audio_dither_get_next(audio_dither)) != NULL) |
| 2578 | { |
| 2579 | if (audio_dither->method == method) |
| 2580 | { |
| 2581 | return audio_dither->description; |
| 2582 | } |
| 2583 | } |
| 2584 | |
| 2585 | fail: |
| 2586 | return NULL; |
| 2587 | } |
| 2588 | |
| 2589 | const hb_dither_t* hb_audio_dither_get_next(const hb_dither_t *last) |
| 2590 | { |
no test coverage detected