Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Parent Directory (gnuradio)

Kludge Summary of gnuradio/gr-audio

Total Kludges 15
Total Subdirs 7

All Directories within gnuradio/gr-audio

All Files within gnuradio/gr-audio

Kludge Snippets in gnuradio/gr-audio

gnuradio/gr-audio/examples/python/audio_fft.py

Category FIXME
Committer matt
Commit ID 383649867fc83a7f348572099b70721302b01f2a
86        
87            def _build_subpanel(self, vbox_arg):
88                # build a secondary information panel (sometimes hidden)
89        
90                # FIXME figure out how to have this be a subpanel that is always
91                # created, but has its visibility controlled by foo.Show(True/False)
92                
93                def _form_set_decim(kv):
94                    return self.set_decim(kv['decim'])
				

gnuradio/gr-audio/lib/osx/audio_osx_source.cc

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
57          std::cerr << "  Channels per Frame : " << inDesc->mChannelsPerFrame << std::endl;
58          std::cerr << "  Bits per Channel   : " << inDesc->mBitsPerChannel << std::endl;
59        }
60        
61        // FIXME these should query some kind of user preference
62        
63        audio_osx_source::audio_osx_source (int sample_rate,
64        				    const std::string device_name,
65        				    bool do_block,
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 1

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
108          }
109        
110          else {			// underrun
111            self->d_nunderuns++;
112            ssize_t r = ::write(2, "aU", 2);	// FIXME change to non-blocking call
113            if(r == -1) {
114              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
115            }
116        
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 2

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
113            if(r == -1) {
114              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
115            }
116        
117            // FIXME we should transfer what we've got and pad the rest
118            memset(outputBuffer, 0, nreqd_samples * sizeof(sample_t));
119        
120            self->d_ringbuffer_ready = true;
121            self->d_ringbuffer_cond.notify_one();  // Tell the sink to get going!
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 3

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
168            bail("no devices available", 0);
169        
170          if (d_device_name.empty()) 
171          {
172            // FIXME Get smarter about picking something
173            fprintf(stderr,"\nUsing Default Device\n");
174            device = Pa_GetDefaultOutputDevice();
175            deviceInfo = Pa_GetDeviceInfo(device);
176            fprintf(stderr,"%s is the chosen device using %s as the host\n",
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 1

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
111          }
112        
113          else {			// overrun
114            self->d_noverruns++;
115            ssize_t r = ::write(2, "aO", 2);	// FIXME change to non-blocking call
116            if(r == -1) {
117              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
118            }
119        
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 2

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
168            bail("no devices available", 0);
169        
170          if (d_device_name.empty()) 
171          {
172            // FIXME Get smarter about picking something
173            device = Pa_GetDefaultInputDevice();
174            deviceInfo = Pa_GetDeviceInfo(device);
175            fprintf(stderr,"%s is the chosen device using %s as the host\n",
176        	    deviceInfo->name, Pa_GetHostApiInfo(deviceInfo->hostApi)->name);
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 3

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
318              // had anything better to do.  Thus we really need to produce some amount
319              // of "fill".
320              //
321              // There are lots of options for comfort noise, etc.
322              // FIXME We'll fill with zeros for now.  Yes, it will "click"...
323        
324              // Fill with some frames of zeros
325              {
326        	gruel::scoped_lock guard(d_ringbuffer_mutex);
				

gnuradio/gr-audio/lib/windows/audio_windows_sink.cc

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
44        }
45        
46        static const double CHUNK_TIME = 0.1;	//0.001;           // 100 ms
47        
48        // FIXME these should query some kind of user preference
49        
50        static std::string
51        default_device_name ()
52        {
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 1

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
44        }
45        
46        static const double CHUNK_TIME = 0.005;	// 5 ms
47        
48        // FIXME these should query some kind of user preference
49        
50        static std::string
51        default_device_name ()
52        {
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 2

Category TODO
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
60            d_sampling_freq (sampling_freq),
61            d_device_name (device_name.empty ()? default_device_name () : device_name),
62            d_fd (-1), d_buffer (0), d_chunk_size (0)
63        {
64          //FIXME TODO implement me
65        #if 0
66          if ((d_fd = open (d_device_name.c_str (), O_RDONLY)) < 0)
67            {
68              fprintf (stderr, "audio_windows_source: ");
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 3

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
60            d_sampling_freq (sampling_freq),
61            d_device_name (device_name.empty ()? default_device_name () : device_name),
62            d_fd (-1), d_buffer (0), d_chunk_size (0)
63        {
64          //FIXME TODO implement me
65        #if 0
66          if ((d_fd = open (d_device_name.c_str (), O_RDONLY)) < 0)
67            {
68              fprintf (stderr, "audio_windows_source: ");
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 4

Category TODO
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
135        audio_windows_source::work (int noutput_items,
136        			    gr_vector_const_void_star & input_items,
137        			    gr_vector_void_star & output_items)
138        {
139          //FIXME TODO implement me
140        #if 0
141          float *f0 = (float *) output_items[0];
142          float *f1 = (float *) output_items[1];	// will be invalid if this is mono output
143        
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 5

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
135        audio_windows_source::work (int noutput_items,
136        			    gr_vector_const_void_star & input_items,
137        			    gr_vector_void_star & output_items)
138        {
139          //FIXME TODO implement me
140        #if 0
141          float *f0 = (float *) output_items[0];
142          float *f1 = (float *) output_items[1];	// will be invalid if this is mono output
143        
				

gnuradio/gr-audio/swig/audio_swig.i

Category Magic
Committer Josh Blum
Commit ID 4cba8db90fe1412232a4c1a20d834f6ce606baf0
53        #include <gr_audio_sink.h>
54        %}
55        
56        ////////////////////////////////////////////////////////////////////////
57        // block magic
58        ////////////////////////////////////////////////////////////////////////
59        GR_SWIG_BLOCK_MAGIC(audio,source)
60        %include <gr_audio_source.h>
61