Hallo
My computer has 6 audio jacks. I would like to use one of them as an additional headphone output to play a separate audio track. Anyone an idea. It's still about the anime project.
THX TFT
A question about audio output
A question about audio output
TFT seid 1989
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak
Re: A question about audio output
From which OS are you talking
Or do you need solutions for all OSs?
Or do you need solutions for all OSs?
Re: A question about audio output
Windows 10 PC
TFT seid 1989
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak
Re: A question about audio output
You can use the Portaudio library
Re: A question about audio output
I've been looking at portaudio and the purebasic code I've been able to find does load the .dll and the c library and reports the ASIO audio channels (I have an 8 channel Gigaport Ex.
What I can't figure out is how to play a wav or mp3 file out a specific channel. The code reports pointer errors and things related to memory. I'm using Windows 11. I've stared at everything and I have no clue. It would be wonderful if someone would post a purebasic example file that works. The Gigaport Ex is an awesome 8 channel USB soundcard with ASIO drivers that is fantastic. I'm motivated to investigate a way to utilize it with purebasic but so far am lost in the weeds trying to sort it out.
If one of the genius' here would comment more than "...use the Portaudio library" that would be totally awesome and worth a measure of support/Patreon donation... Thanks in advance! Love purebasic!
What I can't figure out is how to play a wav or mp3 file out a specific channel. The code reports pointer errors and things related to memory. I'm using Windows 11. I've stared at everything and I have no clue. It would be wonderful if someone would post a purebasic example file that works. The Gigaport Ex is an awesome 8 channel USB soundcard with ASIO drivers that is fantastic. I'm motivated to investigate a way to utilize it with purebasic but so far am lost in the weeds trying to sort it out.
If one of the genius' here would comment more than "...use the Portaudio library" that would be totally awesome and worth a measure of support/Patreon donation... Thanks in advance! Love purebasic!
Re: A question about audio output
Not sure if I've understand you correctly, but if you mean to select a particular device, have a look at: viewtopic.php?t=79723
HTH
HTH
PureBasic: Surprisingly simple, diabolically powerful
Re: A question about audio output
I saw that but wasn't able to make anything work, except for running the program svcl.exe to switch the default output. That works, but it feels a bit hacky. Let's say I had 4 stereo wav files I wanted to play simultaneously out four different sound devices. So far, that seems above my paygrade, and while I can think of a very "hacky" way to do it with svcl.exe I'm not keen to invest the time coding that. (I might though, for proof of concept)
It would be very cool to be able to just:
Loadmovie(0, moviename$)
PlayMovie(0, WindowID(0), audioOutputDeviceName$)
Dolby Atmos is a thing that's coming on the consumer side, so this type of add on could be useful.
I love how Purebasic lets me quickly try out ideas with the help of some awesome folks here on the forum.
It would be very cool to be able to just:
Loadmovie(0, moviename$)
PlayMovie(0, WindowID(0), audioOutputDeviceName$)
Dolby Atmos is a thing that's coming on the consumer side, so this type of add on could be useful.
I love how Purebasic lets me quickly try out ideas with the help of some awesome folks here on the forum.


