Search found 28 matches
Re: Bluetooth
I too am looking for a way To communicate with an Android computer from a Windows PC via bluetooth. At the moment I'm feeling a bit lost. On the Android I can find and try to connect but it doesn't connect. I used MQTT over WiFi in the past but now need bluetooth. Any help out there other than a ...
- Mon Sep 09, 2024 4:42 pm
- Forum: Coding Questions
- Topic: wavOutSetVolume_(hwo, dwVolume) question...
- Replies: 5
- Views: 841
Re: wavOutSetVolume_(hwo, dwVolume) question...
Thank you for taking the time to explain. That’s what makes this forum awesome!
- Mon Sep 09, 2024 3:23 am
- Forum: Coding Questions
- Topic: wavOutSetVolume_(hwo, dwVolume) question...
- Replies: 5
- Views: 841
[SOLVED] wavOutSetVolume_(hwo, dwVolume) question...
infratec nailed it! The code is working. I'm going to study up on the syntax as I don't know what
variable << 16 | variable means exactly other than to turn integers into what is needed.
Thank you very much for your help! I will try to return the favor to someone else having a problem.
This forum ...
variable << 16 | variable means exactly other than to turn integers into what is needed.
Thank you very much for your help! I will try to return the favor to someone else having a problem.
This forum ...
- Mon Sep 09, 2024 2:27 am
- Forum: Coding Questions
- Topic: wavOutSetVolume_(hwo, dwVolume) question...
- Replies: 5
- Views: 841
Re: wavOutSetVolume_(hwo, dwVolume) question...
So do something like this to mute the right channel? Sorry, tryin' hard to figure this out.
Code: Select all
Procedure.l waveOutdwVolume(Left.u, Right.u)
ProcedureReturn Right << 16 | Left
EndProcedure
waveOutSetVolume_(hwaveOut, waveOutdwVolume(65532, 0))
- Sun Sep 08, 2024 9:57 pm
- Forum: Coding Questions
- Topic: wavOutSetVolume_(hwo, dwVolume) question...
- Replies: 5
- Views: 841
wavOutSetVolume_(hwo, dwVolume) question...
Can anyone help me with loading the dwVolume variable with the right DWORD to set the left and right channel volumes to -100 100 or 40 -40 for example. How do I come up with the DWORD and how do I express it with the dwVolume variable?
I'm looking at the C code I think (mmeapi.h) and I know I need ...
I'm looking at the C code I think (mmeapi.h) and I know I need ...
- Sun Sep 08, 2024 2:15 am
- Forum: Coding Questions
- Topic: [DONE]Sound output for externel Device
- Replies: 17
- Views: 3733
Re: [WORKING] Sound output for externel Device
This code is working for me but I'd like to figure out how to set left/right volume. It's mentioned above, I just have to see if I can figure it out.
This is really pretty awesome if I can get everything I want to do working! Very grateful for this forum! I fixed the "snap" by adding an Eof check in ...
This is really pretty awesome if I can get everything I want to do working! Very grateful for this forum! I fixed the "snap" by adding an Eof check in ...
- Sat Sep 07, 2024 10:46 pm
- Forum: Coding Questions
- Topic: [DONE]Sound output for externel Device
- Replies: 17
- Views: 3733
Re: [DONE]Sound output for externel Device
My guess was correct. It is expecting 48,000 not 44100
Code runs now but there is a big "snap" when the audio ends. I'm looking into that.
Code runs now but there is a big "snap" when the audio ends. I'm looking into that.
- Sat Sep 07, 2024 10:39 pm
- Forum: Coding Questions
- Topic: [DONE]Sound output for externel Device
- Replies: 17
- Views: 3733
Re: [DONE]Sound output for externel Device
Thanks for the help. I removed the .l and I now get to:
If waveOutOpen_(@wave,nDev,@format,hWindow,#Null,#CALLBACK_WINDOW|#WAVE_FORMAT_DIRECT) = #MMSYSERR_NOERROR
and that fails because it returns 11 instead of 0 (#MMSYSERR_NOERROR=0)
Could that be because it expects a different sample rate, bits ...
If waveOutOpen_(@wave,nDev,@format,hWindow,#Null,#CALLBACK_WINDOW|#WAVE_FORMAT_DIRECT) = #MMSYSERR_NOERROR
and that fails because it returns 11 instead of 0 (#MMSYSERR_NOERROR=0)
Could that be because it expects a different sample rate, bits ...
- Sat Sep 07, 2024 8:43 pm
- Forum: Coding Questions
- Topic: [DONE]Sound output for externel Device
- Replies: 17
- Views: 3733
Re: [HELP]Sound output for externel Device
I tried everything here but SetWindowCallback(@GUI_CallBack()) generates:
[ERROR] SetWindowCallback(): The Procedure specified in '@ProcedureName()' does not have the required argument or returntype.
In an ideal world I could send audio out(s) to any playback device(s). I'll keep at it, but so far ...
[ERROR] SetWindowCallback(): The Procedure specified in '@ProcedureName()' does not have the required argument or returntype.
In an ideal world I could send audio out(s) to any playback device(s). I'll keep at it, but so far ...
- Sat Sep 07, 2024 6:53 pm
- Forum: Coding Questions
- Topic: Wav audio select output and volume left/right
- Replies: 3
- Views: 588
[SOLVED] Wav audio select output and volume left/right
For the time being, I'm just running the command line program svcl.exe within my Purebasic app to set the default audio output. It's not ideal, but it's super simple and fast to get results.
Purebasic is my goto for quickly checking out ideas and the help on this forum is awesome. Thanks everyone!
Purebasic is my goto for quickly checking out ideas and the help on this forum is awesome. Thanks everyone!
- Sat Sep 07, 2024 6:47 pm
- Forum: Coding Questions
- Topic: A question about audio output
- Replies: 6
- Views: 1348
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 ...
- Sat Sep 07, 2024 2:04 am
- Forum: Coding Questions
- Topic: A question about audio output
- Replies: 6
- Views: 1348
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 ...
What I can't figure out is how to play a wav or mp3 file out a specific channel. The code reports pointer errors ...
- Fri Sep 06, 2024 8:37 pm
- Forum: Coding Questions
- Topic: Wav audio select output and volume left/right
- Replies: 3
- Views: 588
Re: Wav audio select output and volume left/right
Can I do something like waveOutOpen_() to select an audio output channel for movie audio (which is just an mp3)?
I can get a list of available outputs, I just can't figure out how to set one prior to PlayMovie(0,WindowID(0))
Feeling stumped...
I can get a list of available outputs, I just can't figure out how to set one prior to PlayMovie(0,WindowID(0))
Feeling stumped...
- Fri Sep 06, 2024 7:47 pm
- Forum: Coding Questions
- Topic: Wav audio select output and volume left/right
- Replies: 3
- Views: 588
Re: Wav audio select output and volume left/right
Ok, feeling a bit stupid... LoadMovie loads mp3 files fine and volume left/right is easily set using MovieAudio(0,volume,LRvolume) LRvolume= -100 to 100
duh.
However, I'm still sorting out how to select the channel output from which I have four to choose. When I figure that out I will post. Bones to ...
duh.
However, I'm still sorting out how to select the channel output from which I have four to choose. When I figure that out I will post. Bones to ...
- Thu Sep 05, 2024 5:09 pm
- Forum: Coding Questions
- Topic: Wav audio select output and volume left/right
- Replies: 3
- Views: 588
Wav audio select output and volume left/right
I'm using an 8 channel Gigaport eX with installed ASIO drivers (Windows 11). I'm looking for the best way with Purebasic to select the audio output (there are 4 stereo to select from) AND set the pan or volume for left and right separately WHILE playing the wav file.
I've looked at the bass ...
I've looked at the bass ...