~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulsecore/sconv-s16be.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: (1.15.1 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foosconv_s16befoo
2
2
#define foosconv_s16befoo
3
3
 
4
 
/* $Id: sconv-s16be.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: sconv-s16be.h 2037 2007-11-09 02:45:07Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
31
31
void pa_sconv_s16be_to_float32re(unsigned n, const int16_t *a, float *b);
32
32
void pa_sconv_s16be_from_float32re(unsigned n, const float *a, int16_t *b);
33
33
 
 
34
void pa_sconv_s32be_to_float32ne(unsigned n, const int32_t *a, float *b);
 
35
void pa_sconv_s32be_from_float32ne(unsigned n, const float *a, int32_t *b);
 
36
void pa_sconv_s32be_to_float32re(unsigned n, const int32_t *a, float *b);
 
37
void pa_sconv_s32be_from_float32re(unsigned n, const float *a, int32_t *b);
 
38
 
 
39
void pa_sconv_s32be_to_s16ne(unsigned n, const int32_t *a, int16_t *b);
 
40
void pa_sconv_s32be_from_s16ne(unsigned n, const int16_t *a, int32_t *b);
 
41
void pa_sconv_s32be_to_s16re(unsigned n, const int32_t *a, int16_t *b);
 
42
void pa_sconv_s32be_from_s16re(unsigned n, const int16_t *a, int32_t *b);
 
43
 
34
44
#ifdef WORDS_BIGENDIAN
35
45
#define pa_sconv_float32be_to_s16ne pa_sconv_s16be_from_float32ne
36
46
#define pa_sconv_float32be_from_s16ne pa_sconv_s16be_to_float32ne
37
47
#define pa_sconv_float32le_to_s16ne pa_sconv_s16be_from_float32re
38
48
#define pa_sconv_float32le_from_s16ne pa_sconv_s16be_to_float32re
 
49
 
 
50
#define pa_sconv_float32be_to_s32ne pa_sconv_s32be_from_float32ne
 
51
#define pa_sconv_float32be_from_s32ne pa_sconv_s32be_to_float32ne
 
52
#define pa_sconv_float32le_to_s32ne pa_sconv_s32be_from_float32re
 
53
#define pa_sconv_float32le_from_s32ne pa_sconv_s32be_to_float32re
 
54
 
 
55
#define pa_sconv_s16be_to_s32ne pa_sconv_s32be_from_s16ne
 
56
#define pa_sconv_s16be_from_s32ne pa_sconv_s32be_to_s16ne
 
57
#define pa_sconv_s16le_to_s32ne pa_sconv_s32be_from_s16re
 
58
#define pa_sconv_s16le_from_s32ne pa_sconv_s32be_to_s16re
39
59
#endif
40
60
 
41
61
#endif