DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd September 2016
rons's Avatar
rons rons is offline
Snoozing
 
Join Date: Oct 2015
Posts: 45
Default NetBSD questions

Here's an audio question:

1) I use NetBSD for audio players (Ogg123, etc) all the time. Works great. What's the secret to getting audio capture going? I have a CMedia chipset USB Audio dongle, which I use for playing Ogg tunes. I set the audio params with something like:

Code:
audioctl -d /dev/audio1 -w play=44100,2,16,slinear_le #for play
and

Code:
audioctl -d /dev/audio1 -w record=44100,1,16,slinear_le #for capture
The system remembers the play settings, but forgets the capture settings.

Doing:

Code:
audioctl -d /dev/audio1 -a
shows new settings in play mode, but in capture mode everything remains set to the original defaults (8k sample rate, for instance).

Last edited by rons; 10th September 2016 at 06:58 PM.
Reply With Quote
  #2   (View Single Post)  
Old 10th September 2016
rons's Avatar
rons rons is offline
Snoozing
 
Join Date: Oct 2015
Posts: 45
Default

The USB audio device is:

idVendor: 0x0d8c C-Media Electronics, Inc
idProduct:0x000c Audio headset
line-input: (L-R)
line-output (L-R)
microphone input (mono)

This works very well for output on NetBSD (what most people probably really use it for), but for my app I need input as well. I posted a bug to NetBSD's Send-PR page a week or so ago, but no response has been received yet. I imagine they have other fish to fry :-) .

But, at least I've put the particulars here so that someone may eventually run across it.
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2017
Adrien2002 Adrien2002 is offline
Port Guard
 
Join Date: Jun 2015
Posts: 26
Default

I have the same "issue" than you when I was trying to record my desktop sounds on NetBSD. It works but I never succeed to change the channels from 1 to 2, it won't change so in my videos, I had to record in mono to avoid hearing only from one ear when listening what I recorded but then it means no stereo in the videos...
I have no idea if it is a bug or if it is NetBSD that only think my sound card can only record in mono or anything else... But I have the same issue than you. I discussed a bit about it to #netbsd but no one knows.
Reply With Quote
  #4   (View Single Post)  
Old 23rd May 2017
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,021
Default

My understanding is that this is not just a hardware/sound driver issue - an audio server is needed. From sndio(7) on OpenBSD:
Code:
The sndio audio and MIDI system provides access to audio and MIDI
     hardware and to services provided by sndiod(8), summarized below.

     Hardware audio(4) devices correspond to peripherals.  Only one
     application may use any device at a given time.  Generally a limited
     number of encodings, sample rates and channel numbers are supported by
     the hardware, which may not meet the requirements of audio programs.

     To overcome hardware limitations and to allow multiple applications to
     share the hardware, sndiod(8) can be used.  It exposes one or more
     software sub-devices backed by the underlying hardware, while doing all
     necessary conversions on the fly.  It can mix multiple streams or split
     the hardware into multiple sub-devices, to allow programs to use the
     hardware concurrently.
NetBSD offers multiple sound servers/sound processors including pulseaudio, gstreamer, esound and sndio.
Reply With Quote
  #5   (View Single Post)  
Old 8th June 2017
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,021
Default

In the works for NetBSD 8

Quote:
At this point, we would love for folks to test out netbsd-8 and let us
know how it goes. A couple of major improvements since 7.0 are the
addition of USB 3 support and an overhaul of the audio subsystem,
including an in-kernel mixer. Feedback about these areas is
particularly desired.
Reply With Quote
  #6   (View Single Post)  
Old 11th June 2017
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 103
Default

The task of the kernel mixer is to mix different sound outputs to one stream. No blocking when Firefox und XMMS require the audio interface. This has nothing to do with saving setting.
__________________
NetBSD 8.99.1(AMD64)@Xiaomi Air 1.Gen
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asking questions about OpenBSD azdps OpenBSD General 19 1st February 2015 10:32 PM
package questions sharris FreeBSD Ports and Packages 4 4th July 2011 10:23 AM
Two PF questions sparker OpenBSD Security 5 9th November 2009 08:01 AM
Some Questions ?? ultranothing OpenBSD Security 6 4th September 2009 04:59 PM
rc.conf questions starbuck FreeBSD General 2 29th July 2008 06:16 PM


All times are GMT. The time now is 03:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick