diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-11-09 17:10:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 17:10:07 +0100 |
commit | a9e09b2c0a99efddfcc16f5e413e2d73aa0e1732 (patch) | |
tree | e53a738b94461189540bfe1a2c7b643b41ac488f /test/test.h | |
parent | 4d5d9a6e4e0811b52b427602261d5e0b9bc85f21 (diff) |
add support for specifying sample format (#317)
API: ausrc and auplay
- add config items for ausrc/auplay format:
ausrc_format s16|float
auplay_format s16|float
- audio.c: convert audio samples to/from signed 16-bit
Modules:
alsa
add test for sample format FLOAT
rst: add support for FLOAT sample format
audiounit: add support for FLOAT sample format
coreaudio: check for signed 16-bit audio format
oss: check for signed 16-bit sample format
winwave: check for S16LE
pulse: add support for FLOAT sample format
sndio: check for S16 format
gst1: check sample format
aufile: check sample format
aubridge: check sample format
gst: check sample format
opensles: check for S16 sample format
jack: check sample format
alsa: remove usage of local config
test: change samples to void pointer
test: change sample type to void pointer
Diffstat (limited to 'test/test.h')
-rw-r--r-- | test/test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.h b/test/test.h index 572e179..f276a8d 100644 --- a/test/test.h +++ b/test/test.h @@ -143,7 +143,7 @@ int mock_ausrc_register(struct ausrc **ausrcp); struct auplay; -typedef void (mock_sample_h)(const int16_t *sampv, size_t sampc, void *arg); +typedef void (mock_sample_h)(const void *sampv, size_t sampc, void *arg); int mock_auplay_register(struct auplay **auplayp, mock_sample_h *sampleh, void *arg); @@ -206,6 +206,7 @@ int test_call_dtmf(void); int test_call_video(void); int test_call_aulevel(void); int test_call_progress(void); +int test_call_format_float(void); #ifdef USE_VIDEO int test_video(void); |