Re: ALSA sink

2024-05-01 Thread Ivan
Thank you very much for the thorough approach to my question and detailed instructions on how to catch the problem. I tried to look with a debugger earlier, but I am not good at debugging and C++. That's why I reproduced the steps you suggested. Below is the output of the commands. I understa

Re: ALSA sink

2024-05-01 Thread Marcus Müller
sa_sink.cc#L175-L178 the setting of the sample rate must have already worked. Maybe the ALSA sink is expecting things that aren't true for your PCM device? Maybe the PCM device is strrange? Hard to tell, not enough of an internals expert for ALSA, to be honest. Hm. I'd propose this: 1.

ALSA sink

2024-05-01 Thread Ivan
Hey, everybody. I am just starting to try GNUradio and I am facing some difficulties. Maybe someone can comment and suggest a direction to find an answer to my question. I have GNUradio 3.10.9.2 installed on ArchLinux; in gnuradio-companion I created a simple flowgraph: noise source -> throt

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Michael Dickens
You're welcome, Chris. Try those changes & see if maybe that helps. I can generally switch between GR37 and GR38 easily, but right now I'm doing some GR38 CMake-related fixups & need it installed while doing so. Can't easily switch right now ... It is very possible that setting an ID for that wi

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Chris Gorman
Hi Michael, Thanks for your input. I will change the grc script as you suggested. This may not solve my issue explicitly, but I want to learn gnuradio so everything helps. I have been running gnuradio 3.7 mostly because I have seen everyone's scripts use WX widgets and I found it easier to port

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Michael Dickens
Hi Chris - A few comments, more than anything else: * You're generating 2 sinusoids then pushing them directly into the audio sink. You're not guaranteed that the audio sink can support 2 input channels, even if it seem to be able to. If the audio sink is working, it will always support at leas

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Chris Gorman
Hi Michael, Here's the original .grc file. Thanks for your help. Chris On Mon, Aug 26, 2019 at 1:19 PM Michael Dickens wrote: > > Can you send me the original GRC flowgraph too? I know you modified the > output Python, but it might be useful. Also: I'm trying to use GR38 (just > because) ...

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Michael Dickens
Can you send me the original GRC flowgraph too? I know you modified the output Python, but it might be useful. Also: I'm trying to use GR38 (just because) ... so seeing what Python it generates will be useful. Thx! - MLD On Mon, Aug 26, 2019, at 11:13 AM, Chris Gorman wrote: > Hi Michael, > > T

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Chris Gorman
Hi Michael, Thanks for looking at this for me. I'm using gnuradio-3.7.13.5 on ubuntu 18.04. Chris On Mon, Aug 26, 2019 at 11:05 AM Michael Dickens wrote: > > OK good to know, Chris. Can you send me the latest version of your test > script as an attachment? I'll give it a go & see what happens

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Barry Duggan
Hi Chris, You might try 'pavucontrol' as suggested to me by Kyeong Su Shin. Since you are operating outside the GRC environment, it might help. Also, I would compare the Python code generated by GRC with your modified code to see areas which address the audio. Good luck, --- Barry Duggan O

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Michael Dickens
Just FYI that ALSA is Linux-specific. Chris: Did you verify that audio output is working at all on your system? If so, then have you worked out why it's not working in your flowgraph? If not, let us know of any changes to it since you posted last & we'll see what we can do. - MLD On Mon, Aug 2

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Chris Gorman
Hi Barry, Thanks for your time and expertise. I should have been more verbose in my email. I can get sound out of my code when I use the gnuradio-companion program, but not when I run the snippet I gave you. The purpose of the hacked code is to try to tie a 4x4 Qt.PushButton to the various frequ

Re: [Discuss-gnuradio] unable to get sound from alsa sink

2019-08-26 Thread Barry Duggan
Hi Chris, You didn't mention your OS or your platform, but this works for a Linux system: Using a terminal screen, enter 'aplay -L' Here is an excerpt from my Raspberry Pi: """ default:CARD=ALSA bcm2835 ALSA, bcm2835 ALSA Default Audio Device hw:CARD=ALSA,DEV=1 bcm2835 ALSA, bcm2

[Discuss-gnuradio] unable to get sound from alsa sink

2019-08-25 Thread Chris Gorman
Hello All, I have been hacking at a python script with an attempt to pass two frequencies to be added to audio sink. I can't seem to get any sound out of the sound card, though. When I run the script I get "gr::log :INFO: audio source - Audio sink arch: alsa". The script follows. My python and

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-18 Thread Alex DEKKER
On Mon, 18 Jul 2011 19:20:55 +0200, Volker Schroer wrote: Here is an example that works for an Delta M44 card for input and output This card uses the snd_ice1712 module. Thanks for your help. I feel I must be getting closer; I specify SDR1000Play as the sink device, and I can now execute t

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-18 Thread Volker Schroer
Here is an example that works for an Delta M44 card for input and output This card uses the snd_ice1712 module. Content of .asoundrc = pcm.SDR1000_card { type hw card M44 } ctl.SDR1000_card { type hw card M44 } pcm.dmixer { type dmix ipc_key

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-18 Thread Alex DEKKER
On Sun, 17 Jul 2011 19:36:50 -0400, Marcus D. Leech wrote: Here's a discussion of a strongly-related issue with the M-Audio 2496 that seems to imply that the driver only offers 10 channels, not the conventional '2', and so things that would ordinarily expect '2' get astonished as a result: ht

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-17 Thread Marcus D. Leech
On 07/17/2011 06:19 PM, Alex DEKKER wrote: Built GNUradio from git on Debian Testing AMD64 this afternoon, and intending to use it with a Funcube Dongle and gr-fcd. I am having some difficulty with the ALSA sink and an ICE1712 [M-Audio 2496] sound card. I created a very simple flow graph with

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-17 Thread Marcus D. Leech
On 07/17/2011 06:19 PM, Alex DEKKER wrote: Built GNUradio from git on Debian Testing AMD64 this afternoon, and intending to use it with a Funcube Dongle and gr-fcd. I am having some difficulty with the ALSA sink and an ICE1712 [M-Audio 2496] sound card. I created a very simple flow graph with

Re: [Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-17 Thread Marcus D. Leech
On 07/17/2011 06:19 PM, Alex DEKKER wrote: Built GNUradio from git on Debian Testing AMD64 this afternoon, and intending to use it with a Funcube Dongle and gr-fcd. I am having some difficulty with the ALSA sink and an ICE1712 [M-Audio 2496] sound card. I created a very simple flow graph with

[Discuss-gnuradio] ICE1712 and ALSA sink

2011-07-17 Thread Alex DEKKER
Built GNUradio from git on Debian Testing AMD64 this afternoon, and intending to use it with a Funcube Dongle and gr-fcd. I am having some difficulty with the ALSA sink and an ICE1712 [M-Audio 2496] sound card. I created a very simple flow graph with a sine wave Signal Source straight in to an