How to see the selected hardware audio device #310
Replies: 4 comments 3 replies
-
Use these members from the device.playback.id
device.playback.name
device.capture.id
device.capture.name If you used a specific device ID to initialize the device, that's what you'll get, or you'll get an error when you try to initialize the device. When you pass in NULL for the device ID, you should get the device that has it's |
Beta Was this translation helpful? Give feedback.
-
thank you for the help. I did not see this in the source code. Now I could continue. I was able to connect a ZOOM R16 USB AUDIO DEVICE to the windows pc and was able to playback and capture via MiniAudio. But this is only working as long as I select MONO for capture. When I try to select 2 or more channels I get a bad noise on the duplex device (computer speaker) EDIT This was the report, when the noise was still there. I leave it here, although it works now:
(the error message and the end appears always when I stop the device, think this is normal...) |
Beta Was this translation helpful? Give feedback.
-
As I wrote... now it works At first I thought it had perhaps to do with restictions of channels.. So I switched to FORMAT_S32 and 8 IN (USB) , but 2 OUT (speakers) . And suddenly it worked. I think it had to do with my own forwarding of the samples in the Callback() Now it looks like I'm able to also use 3-8 OUT without any problems. Also FORMAT_S16 seems to be possible, but with a poor quality. I did not expect, that it is more noise compared to the use of this interface in a 16bit studio- equippment. I will continue with more experiments. And I need to add the WAV-saving finally. Will the 8 tracks still be independent in the WAV file? That is what i have to find out next. this is what I'm using now:
|
Beta Was this translation helpful? Give feedback.
-
dont worry.. in this example code the buffer was 32bit, you can see it, because the buffer is defined INT
so I added 32bit integers. If I need to bring it back to the blitzMax's 16bit world i devided it:
And of cource I know that i have to care about Clipping and distortion (with real audio) when adding 8 values to keep below -3dB. by the way... is the 32bit integer audio format defined as SHORT*65536 when converting? This would mean again no headroom? In the 24bit studio world we try to use ony 21bit and stay -16dB away from clipping |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm working on the Binding for BlitzMax and now I added the context-feature to select hardware devices. I already can do the enumeration and also understand, that i have to send the STRUCT pPlaybackInfos[ID_Playback].id received from the context to switch between devices. but where can I see, which device is really selected. Or which is "default"?
Beta Was this translation helpful? Give feedback.
All reactions