diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-06-02 19:36:08 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-06-12 11:11:18 -0700 |
commit | 5c8b4abab2d23006e49619092477fdef6aea40eb (patch) | |
tree | cc4e5615bb83914d797e119e5801321ceeb397d5 /src/tests | |
parent | 1c6e5d4e818fd174ef16c97cbcc404ea9ee1aa6b (diff) |
tests: Update extended API test
The test wasn't updated after we changed the pa_format_info proplist
format.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/extended-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/extended-test.c b/src/tests/extended-test.c index ec3cc53c..f99a85c3 100644 --- a/src/tests/extended-test.c +++ b/src/tests/extended-test.c @@ -126,9 +126,9 @@ static void context_state_callback(pa_context *c, void *userdata) { formats[0] = pa_format_info_new(); formats[0]->encoding = PA_ENCODING_PCM; - pa_proplist_sets(formats[0]->plist, PA_PROP_FORMAT_SAMPLE_FORMAT, pa_sample_format_to_string(PA_SAMPLE_FLOAT32)); - pa_proplist_setf(formats[0]->plist, PA_PROP_FORMAT_RATE, "%u", SAMPLE_HZ); - pa_proplist_setf(formats[0]->plist, PA_PROP_FORMAT_CHANNELS, "%u", 1); + pa_format_info_set_sample_format(formats[0], PA_SAMPLE_FLOAT32); + pa_format_info_set_rate(formats[0], SAMPLE_HZ); + pa_format_info_set_channels(formats[0], 1); fprintf(stderr, "Creating stream %i\n", i); |