add new API function pa_memchunk_sine()

Ease generation of sine signals. Try to make the repeatable sine
memblock fit into a single mempool slot.
This commit is contained in:
Lennart Poettering 2009-01-12 19:48:44 +01:00
parent 949de8156e
commit b8e6aae08e
2 changed files with 36 additions and 0 deletions

View file

@ -83,4 +83,6 @@ size_t pa_usec_to_bytes_round_up(pa_usec_t t, const pa_sample_spec *spec);
void pa_memchunk_dump_to_file(pa_memchunk *c, const char *fn);
void pa_memchunk_sine(pa_memchunk *c, pa_mempool *pool, unsigned rate, unsigned freq);
#endif