commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/13: gr-audio: use generic int types inst


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/13: gr-audio: use generic int types instead of gr_int*
Date: Fri, 3 Apr 2015 19:59:34 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 3dcb5b95a4296ef5f6d61fe75dd06735ac5ea467
Author: Jiří Pinkava <address@hidden>
Date:   Mon Mar 9 09:32:16 2015 +0100

    gr-audio: use generic int types instead of gr_int*
---
 gr-audio/lib/alsa/alsa_sink.cc   | 8 ++++----
 gr-audio/lib/alsa/alsa_source.cc | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gr-audio/lib/alsa/alsa_sink.cc b/gr-audio/lib/alsa/alsa_sink.cc
index 4238f11..f2e70ca 100644
--- a/gr-audio/lib/alsa/alsa_sink.cc
+++ b/gr-audio/lib/alsa/alsa_sink.cc
@@ -330,7 +330,7 @@ namespace gr {
                         gr_vector_const_void_star &input_items,
                         gr_vector_void_star &output_items)
     {
-      typedef gr_int16 sample_t;  // the type of samples we're creating
+      typedef int16_t sample_t;  // the type of samples we're creating
       static const float scale_factor = std::pow(2.0f, 16-1) - 1;
 
       unsigned int nchan = input_items.size();
@@ -370,7 +370,7 @@ namespace gr {
                         gr_vector_const_void_star &input_items,
                         gr_vector_void_star &output_items)
     {
-      typedef gr_int32 sample_t; // the type of samples we're creating
+      typedef int32_t sample_t; // the type of samples we're creating
       static const float scale_factor = std::pow(2.0f, 32-1) - 1;
 
       unsigned int nchan = input_items.size();
@@ -411,7 +411,7 @@ namespace gr {
                             gr_vector_const_void_star &input_items,
                             gr_vector_void_star &output_items)
     {
-      typedef gr_int16 sample_t; // the type of samples we're creating
+      typedef int16_t sample_t; // the type of samples we're creating
       static const float scale_factor = std::pow(2.0f, 16-1) - 1;
 
       assert(input_items.size () == 1);
@@ -452,7 +452,7 @@ namespace gr {
                             gr_vector_const_void_star &input_items,
                             gr_vector_void_star &output_items)
     {
-      typedef gr_int32 sample_t; // the type of samples we're creating
+      typedef int32_t sample_t; // the type of samples we're creating
       static const float scale_factor = std::pow(2.0f, 32-1) - 1;
 
       assert(input_items.size () == 1);
diff --git a/gr-audio/lib/alsa/alsa_source.cc b/gr-audio/lib/alsa/alsa_source.cc
index 6297c33..2cfc33d 100644
--- a/gr-audio/lib/alsa/alsa_source.cc
+++ b/gr-audio/lib/alsa/alsa_source.cc
@@ -310,7 +310,7 @@ namespace gr {
                           gr_vector_const_void_star &input_items,
                           gr_vector_void_star &output_items)
     {
-      typedef gr_int16 sample_t; // the type of samples we're creating
+      typedef int16_t sample_t; // the type of samples we're creating
       static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
 
       unsigned int nchan = output_items.size ();
@@ -348,7 +348,7 @@ namespace gr {
                               gr_vector_const_void_star &input_items,
                               gr_vector_void_star &output_items)
     {
-      typedef gr_int16 sample_t; // the type of samples we're creating
+      typedef int16_t sample_t; // the type of samples we're creating
       static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
 
       float **out = (float**)&output_items[0];
@@ -385,7 +385,7 @@ namespace gr {
                           gr_vector_const_void_star &input_items,
                           gr_vector_void_star &output_items)
     {
-      typedef gr_int32 sample_t; // the type of samples we're creating
+      typedef int32_t sample_t; // the type of samples we're creating
       static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
 
       unsigned int nchan = output_items.size ();
@@ -423,7 +423,7 @@ namespace gr {
                               gr_vector_const_void_star &input_items,
                               gr_vector_void_star &output_items)
     {
-      typedef gr_int32 sample_t; // the type of samples we're creating
+      typedef int32_t sample_t; // the type of samples we're creating
       static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
 
       float **out = (float**)&output_items[0];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]