Bert Vermeulen
fdefc40aec
output: Fix options enumeration. Again.
2014-08-20 17:33:09 +02:00
Marc Schink
879dd50fb6
output: Allocate additional memory for NULL terminator.
...
Best regards,
Marc
>From a7228150fdea91a65b5d70359bf51b87d2572edf Mon Sep 17 00:00:00 2001
From: Marc Schink <sigrok-dev@marcschink.de>
Date: Wed, 20 Aug 2014 05:34:57 -0400
Subject: [PATCH] output: Allocate additional memory for NULL terminator.
2014-08-20 14:20:55 +02:00
Bert Vermeulen
9fc318d9ef
output: Fix double free.
2014-08-19 00:01:57 +02:00
Bert Vermeulen
499c85dce5
output: Fix output option enumeration.
2014-08-19 00:01:57 +02:00
Bert Vermeulen
af7d656d37
output: Constify module options.
2014-08-15 20:24:00 +02:00
Bert Vermeulen
fc74643098
output: Actually return a NULL-terminated array.
...
This returned an array of structs with an NULL-ed element at the end.
The drivers still do this, but the wrappers now make and free a NULL-
terminated array around it.
sr_output_options_free() now takes the pointer returned by
sr_output_options_get(), instead of the module owning it.
2014-08-15 20:23:52 +02:00
Bert Vermeulen
441e9eae58
output/wav: Minor code cleanup.
2014-08-13 14:34:55 +02:00
Bert Vermeulen
63f6df68c6
output: Deal properly with NULL (no) options on a new output instance.
2014-08-13 14:34:55 +02:00
Bert Vermeulen
e336c0413c
output/vcd: Drop obsolete string.
2014-08-03 14:09:04 +02:00
Bert Vermeulen
706f482a95
output: Check options hash before destroying.
2014-08-03 01:24:30 +02:00
Bert Vermeulen
dcc55fe91a
output: Move option checks to the wrapper.
...
Output modules are now guaranteed:
- Every option is always given, with the default value if not supplied
by the user, and is the right GVariantType.
- No invalid options are ever passed.
2014-08-03 01:16:03 +02:00
Bert Vermeulen
950043c30e
output: Modules can keep track of option resources without wrapper help.
2014-08-02 19:20:00 +02:00
Bert Vermeulen
7ea75009d1
output/wav: Add 'scale' option.
...
Audio tools processing WAV failes generally need the samples to be in
the range -1 to +1. The scale option adds postprocessing to any samples
going into a WAV file, by dividing the sample values by the given factor.
2014-08-02 03:50:27 +02:00
Bert Vermeulen
364859ac73
output/wav: Fix channel deinterleaving.
2014-08-01 12:00:51 +02:00
Bert Vermeulen
6e6babb9d5
output/analog: Fix channel deinterleaving.
2014-08-01 11:57:59 +02:00
Bert Vermeulen
0605f87475
output/wav: Initial module implementation.
2014-07-29 15:46:26 +02:00
Bert Vermeulen
afaa75b98c
output/wav: Initial module skeleton.
2014-07-29 02:47:10 +02:00
Bert Vermeulen
d686c5ec46
output: Rename instance private storage pointer to priv.
...
This makes it consistent with other libsigrok fields used for this purpose.
2014-07-28 16:02:21 +02:00
Bert Vermeulen
a755b0e122
output: Finish output module API wrappers.
...
The sr_output and sr_output_module structs are now no longer accessible
from the client.
2014-07-26 03:57:17 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00