Browse Source

dither changes from steve h.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@154 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
pbd 23 years ago
parent
commit
4a6b341a3d
2 changed files with 14 additions and 10 deletions
  1. +6
    -5
      jack/jack.h
  2. +8
    -5
      jack/memops.h

+ 6
- 5
jack/jack.h View File

@@ -177,16 +177,17 @@ const char ** jack_port_get_connections (const jack_port_t *port);
int jack_port_set_name (jack_port_t *port, const char *name);

/* This returns a pointer to the memory area associated with the
specified port. It can only be called from within the client's
"process" callback. For an output port, it will be a memory area
specified port. For an output port, it will be a memory area
that can be written to; for an input port, it will be an area
containing the data from the port's connection(s), or
zero-filled. if there are multiple inbound connections, the data
will be mixed appropriately.

You may not cache the values returned across process() callbacks.
There is no guarantee that the values will not change from
process() callback to process() callback.
You may cache the value returned, but only between calls to
your "blocksize" callback. For this reason alone, you should
either never cache the return value or ensure you have
a "blocksize" callback and be sure to invalidate the cached
address from there.
*/

void *jack_port_get_buffer (jack_port_t *, nframes_t);


+ 8
- 5
jack/memops.h View File

@@ -24,11 +24,14 @@
#include <jack/types.h>

void sample_move_d32u24_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);

void sample_move_dither_rect_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_tri_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_shaped_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);

void sample_move_dither_rect_d32u24_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_tri_d32u24_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_shaped_d32u24_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_rect_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_tri_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);
void sample_move_dither_shaped_d16_sS (char *dst, sample_t *src, unsigned long nsamples, unsigned long dst_skip, dither_state_t *state);

void sample_move_dS_s32u24 (sample_t *dst, char *src, unsigned long nsamples, unsigned long src_skip);
void sample_move_dS_s16 (sample_t *dst, char *src, unsigned long nsamples, unsigned long src_skip);


Loading…
Cancel
Save