Running multiple instances of OP25

Status
Not open for further replies.

boatbod

Member
Joined
Mar 3, 2007
Messages
3,338
Location
Talbot Co, MD
well aplay -D plughw:0,0 file.wave plays but not plughw:1,0 which is what aplay -l shows the usb.

ls /proc/asound/card0 shows
codec#0 id pcm0c pcm0p

ls /proc/asound/card1 shows
id pcm0p stream0 usbbus usbid usbmixer
card1 pcm0p should be a playback port (hence the 'p' rather than 'c', which would be capture).
Are you receiving permission denied, or is it simply not working?
If permission denied, it's likely because something else is holding the port open. There would likely be ways around that using 'dmix' if that is the case.
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
nice. pulseaudio is only giving from 95 to 100% on the usb audio volume were 95 is 0 in alsa and 100 is 100.im ok with using alsa to control the volume.
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
yes.is what it is 😆
now im trying to get the usb speaker to work on the pib3+.it works for 30 sec.stderr says pcm underrun audio closing
oh and on the pi im using rx.py with -O plughw:1,0
 
Last edited:

boatbod

Member
Joined
Mar 3, 2007
Messages
3,338
Location
Talbot Co, MD
yes.is what it is 😆
now im trying to get the usb speaker to work on the pib3+.it works for 30 sec.stderr says pcm underrun audio closing
oh and on the pi im using rx.py with -O plughw:1,0
Turn off any gnuplots and minimize the sample size (-S 1000000) to lower the cpu utilization.
Good luck!
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
doesn't look like i have any luck keep getting

audio device: default
set_buffer_size_near requested 4000, but returned 2730
Listening on 127.0.0.1:23456
python version detected: 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0]
Allocating 15 zero-copy buffers
01/23/21 16:26:04.718313 control channel timeout
01/23/21 16:26:05.791437 voice update: tg(2000), freq(856237500), slot(-), prio(1)
01/23/21 16:26:07.856964 PCM underrun

sound stops after but op25 is still running
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,338
Location
Talbot Co, MD
doesn't look like i have any luck keep getting

audio device: default
set_buffer_size_near requested 4000, but returned 2730
Listening on 127.0.0.1:23456
python version detected: 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0]
Allocating 15 zero-copy buffers
01/23/21 16:26:04.718313 control channel timeout
01/23/21 16:26:05.791437 voice update: tg(2000), freq(856237500), slot(-), prio(1)
01/23/21 16:26:07.856964 PCM underrun

sound stops after but op25 is still running
"set_buffer_size_near" is an ALSA error. Try increasing the memory available to the driver.
Code:
sudo su -
echo 1024 > /proc/asound/card0/pcm0p/sub0/prealloc
You may need to change the values of card and pcm to match which device you are actually using.
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
-sudo su
echo 1024 > /proc/asound/card0/pcm0p/sub0/prealloc
permission denied
then i try
-
echo 1024 > /proc/asound/card1/pcm0p/sub0/prealloc
no such file or directory
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,338
Location
Talbot Co, MD
-sudo su
echo 1024 > /proc/asound/card0/pcm0p/sub0/prealloc
permission denied

You need to be root to perform the echo command in the manner shown.
The command "sudo su -" should take you to the root prompt '#' at which point the echo should work. You can cat the prealloc file to see if the change was successful or not. Unfortunately it is not possible to simply edit the file with nano (or vi) because it's a special kernel parameter and not a real file.
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
-sudo su
echo 1024 > /proc/asound/card0/pcm0p/sub0/prealloc
permission denied

i did use sudo su.
i guess something is wrong with raspbian buster lite.good part about it being a pi, just wide sd and do a fresh install of raspbian full
see if that fixes.
 

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
yes that was a typo.
after a fresh install i am no longer getting pcm underrun, i get a second of audio then it stops.im just going to use the headphone jack until i figure it out. the pi was going to be my mobile unit just plug power in.
my mini laptop with 2 dongles has just made my $350 uniden useless.
 

Attachments

  • stderr.2.txt
    18.6 KB · Views: 3

mrwright8t8

Member
Joined
Aug 21, 2017
Messages
18
Um yeah, but your laptop probably cost more than your Uniden.
lol well maybe but its a old hp mini obtained free from Verizon like 10 years ago for bundling i think it has 1gb ram in it lol, its only purpose now is op25
 
Status
Not open for further replies.
Top