10-25-2024, 02:01 PM
I was wondering what are different ways to get audio line/mic input in a QB64PE program. I know there is Windoes API. Is there a way in Linux?
- Dav
- Dav
What options are there to get audio input?
|
10-25-2024, 02:01 PM
I was wondering what are different ways to get audio line/mic input in a QB64PE program. I know there is Windoes API. Is there a way in Linux?
- Dav
10-25-2024, 02:08 PM
We actually already have the capability to do it in a cross-platform manner.
Suggest what you think would work for you. We can discuss the API and have it in a future release. Since audio input is going to be continuous stream, my suggestion is something that works like a reverse _SNDRAW. What do you think? receivedFrames& = _SNDINPUT&(inputArray!(), channels&, requestedFrames&) Something like that? I was also thinking of a cross-platform MIDI I/O.
10-25-2024, 02:22 PM
Oh cool, I didn’t know it already existed. _SNDINPUT sounds great. I tune pianos on the side, always wished to make a tuner app. Also, since QB64PE can play multiple waves simultaneously, having a Line/mic recording method would be all that’s needed to have a multitrack recorder program going.
Kinda just dreaming on those 2 things, but recording audio in QB64PE is something that would really round off QB64PE’s great audio capabilities. - Dav
10-25-2024, 03:02 PM
(This post was last modified: 10-25-2024, 03:09 PM by SpriggsySpriggs.)
You can get sound input from the MCI API in Win32. Here's some old code I made a long time ago when I was maintaining the "Spriggsy's API Collection" repo.
Code: (Select All)
Tread on those who tread on you
10-25-2024, 03:09 PM
Hey thanks, @SpriggsySpriggs. Yes I remember you sharing that. Was going to look for that in my saved files, now I don’t have too.
- Dav
10-25-2024, 07:03 PM
Hey @SpriggsySpriggs, just thought I'd mention that your win api recorder code up there works fine in the windows version of qb64pe running under linux using wine.
- Dav
11-01-2024, 02:52 AM
Nice. Wine is truly a wonderful thing. Even my video player works a little bit in it.
Tread on those who tread on you
|
« Next Oldest | Next Newest »
|