# How to use gr-audio on Windows?

**URL:** <https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187>\
**Category:** GNU Radio\
**Created:** [August 13, 2013, 10:40am UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187 "2013-08-13T10:40:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 13, 2013, 10:40am UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/1 "2013-08-13T10:40:40Z")

</div>

Hi Lists,

I’ve install gnuradio on Windows following the link:  
[http://voltronics.blogspot.com/2013/01/gnu-radio-windows-build-guide.html](http://voltronics.blogspot.com/2013/01/gnu-radio-windows-build-guide.html).  
It’s OK.After that, I’ve write program to read data from soundcard with  
gr-audio lib. It’s OK (using portaudio lib).

When I copy the program and all dll from gnuradio, QT,… into a  
directory  
on another PC, the program can run but it can’t read data from  
soundcard.

Could you help me, please?

Best regards.

LTP.

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 14, 2013, 11:33pm UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/2 "2013-08-14T23:33:15Z")

</div>

On Tue, Aug 13, 2013 at 4:39 AM, Luong Tan P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Could you help me, please?
> 
> Best regards.
> 
> LTP.

Windows native audio is currently not implemented (see But 521 on our  
issues tracker). We need someone willing to work on it to see if we  
can fix it.

But it sounds like you had it working using portaudio, so maybe you  
just need to get portaudio working properly on the new machine. And  
look at the installed gr-audio.conf file to set ‘audio\_mode’ to  
portaudio to make sure you’re properly selecting that.

–  
Tom  
Visit us at GRCon13 Oct. 1 - 4

> **[GNU Radio Conference 2013 — Rondeau Research](http://www.trondeau.com/gnu-radio-conference-2013)**

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 15, 2013, 2:02am UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/3 "2013-08-15T02:02:15Z")

</div>

On the PC has installed gnuradio with portaudio, the ‘audio\_mode’ has  
set  
portaudio in gr-audio.conf file.  
When I move my program to a new PC, it can read data from soundcard and  
I  
don’t know how to use gr-audio.conf file to configure gr-audio (where to  
set file conf, using it).  
Could you help me, please?

Thanks so much.

Best regards.

LTP.

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 15, 2013, 2:05am UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/4 "2013-08-15T02:05:11Z")

</div>

Sorry for my misstake.

When I move my program to new PC, it can’t read data from soundcard.

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 19, 2013, 5:59pm UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/5 "2013-08-19T17:59:48Z")

</div>

On Wed, Aug 14, 2013 at 8:04 PM, Luong Tan P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Sorry for my misstake.
> 
> When I move my program to new PC, it can’t read data from soundcard.

I’m still a little confused.

You have a Windows machine that you can use with gr-audio.

You have a /second/ Windows machine that cannot use gr-audio.

Right?

As I said, the native Windows interface in gr-audio does not work. But  
if you are using portaudio on one Windows machine, make sure your  
other machine is set up the exact same way to use portaudio there,  
too.

Tom

> > > > I’ve install gnuradio on Windows following the link:  
> > > > Could you help me, please?  
> > > > just need to get portaudio working properly on the new machine. And  
> > > > look at the installed gr-audio.conf file to set ‘audio\_mode’ to  
> > > > portaudio to make sure you’re properly selecting that.
> > > 
> > > –  
> > > Tom  
> > > Visit us at GRCon13 Oct. 1 - 4  
> > > [GNU Radio Conference 2013 — Rondeau Research](http://www.trondeau.com/grcon13)

–  
Tom  
Visit us at GRCon13 Oct. 1 - 4

> **[GNU Radio Conference 2013 — Rondeau Research](http://www.trondeau.com/gnu-radio-conference-2013)**

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 20, 2013, 4:48pm UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/6 "2013-08-20T16:48:16Z")

</div>

On Mon, Aug 19, 2013 at 8:12 PM, Luong Tan P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> C:\Users\LTP.gnuradio. In this directory create a file named config.conf.  
> Set audio\_module = portaudio.  
> 3. Copy my program from PC1 to PC2. The program can run but it can’t read  
> data from LineIn port on sound card.
> 
> Could you help me, please?
> 
> LTP.

This sounds like a problem with portaudio. I would install portaudio  
properly on PC2 and test it to make sure it’s working.

Tom

> > You have a Windows machine that you can use with gr-audio.  
> > Tom
> > 
> > > > to set
> > > > 
> > > > > > gr-audio lib. It’s OK (using portaudio lib).  
> > > > > > LTP.  
> > > > > > –

–  
Tom  
Visit us at GRCon13 Oct. 1 - 4

> **[GNU Radio Conference 2013 — Rondeau Research](http://www.trondeau.com/gnu-radio-conference-2013)**

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [August 20, 2013, 2:13am UTC](https://www.ruby-forum.com/t/how-to-use-gr-audio-on-windows/236187/7 "2013-08-20T02:13:25Z")

</div>

My problem here:

On Windows PC1, I’ve install gnuradio with gr-audio (using portaudio)  
from  
source code, write a program to read data from LineIn port on sound  
card.  
Every thing is OK.

On Windows PC2:

1. I copy the gnuradio dlls from PC1 to PC2 (don’t install gnuradio),  
included portaudio.dll, QT4Core.dll, …
2. Create a directory named _.gnuradio_ in my _%HOME%_, here \*  
C:\Users\LTP.gnuradio\*. In this directory create a file named  
\*config.conf.  
_Set_ \*audio\_module = portaudio.
3. Copy my program from PC1 to PC2. The program can run but it can’t  
read data from LineIn port on sound card.

Could you help me, please?

LTP.
