Displaying 3 results from an estimated 3 matches for "float_data".
2004 Aug 06
3
question on usage of the libraries
...duction, so I doubt you can get
JM> 50% unless you're encoding zeros or doing something wrong...
I think I'm doing something wrong :o) Don't know what though.
Also, I could not find in the documentation how to convert the sample-data
to floats. Now I'm just doing something like
float_data[index] = (float)input_data[index];
where input_data is a short *input_data "array". Is this correct? Or should
I scale the data down to -1.0 <= x <= 1.0?
JM> In normal operation, narrowband is 8000 Hz, wideband is 16000 Hz and
JM> ultra-wideband is 32000 Hz, so I'd chang...
2004 Aug 06
2
question on usage of the libraries
Hi,
I'm not sure if I should post this question to this list. If not; please
tell me.
Ok, here it comes:
Is the following code correct for compressing audio? The output I get is so
extremely small, but what is more important: if I pass it through zlib, it
gets at least 50% smaller!
Init:
int bitrate = max_bandwidth * 8;
speex_bits_init(&libspeex_bits);
if
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...;)";
+ }
+
+ if (value[0] == 'n') {
+ s += "-";
+ s += value.drop_front(1);
+ } else
+ s += value;
+
+ if (type.size() <= 3) {
+ s += type;
+ }
+ }
+};
+
+template <class Float>
+struct float_data;
+
+template <class Float>
+class float_expr : public expr
+{
+ const string_ref contents;
+public:
+ float_expr(string_ref contents) : contents(contents) {}
+
+ // FIXME: clean up this
+ void print_left(stream& s) const override
+ {
+ const char* first = contents.be...