Search found 19 matches

by Susan20
Thu Aug 14, 2014 3:23 pm
Forum: Announcement
Topic: USB HID Library
Replies: 60
Views: 73414

Re: USB HID Library

Thanks! I put the ReadDevice function in a thread, which is called by a timer-event. Although I only get one value, which is independent from the pedal action (press, release), I can control the play/stopp-process.
by Susan20
Thu Aug 14, 2014 9:29 am
Forum: Announcement
Topic: USB HID Library
Replies: 60
Views: 73414

Re: USB HID Library

@User_Russian, could you have a quick look at my code? As you said, I try to produce a data stream from the device by the function GetFeature. My hope was, that I can detect this data stream as an event in the repeat-loop. But it didn't work.

;the IDs of the infinity foot pedal
#USB_PID=$FF
#USB ...
by Susan20
Wed Aug 13, 2014 3:51 pm
Forum: Announcement
Topic: USB HID Library
Replies: 60
Views: 73414

Re: USB HID Library

Thanks, User_Russian, for your information. I will try it ...
by Susan20
Wed Aug 13, 2014 3:38 pm
Forum: Announcement
Topic: USB HID Library
Replies: 60
Views: 73414

Re: USB HID Library

Is there a function in your lib, that can detect such a stream of data?
by Susan20
Wed Aug 13, 2014 2:18 pm
Forum: Announcement
Topic: USB HID Library
Replies: 60
Views: 73414

Re: USB HID Library

I have a USB-HID footpedal connected to my computer. When I run the DeviceTest-Code, I get the message that device is connected. (by the way: I use the hid_module.pbi and not the lib).
So far so good. But my question is: How can I observe that for example the left pedal is pressed? Is there a ...
by Susan20
Sat Sep 04, 2010 5:29 pm
Forum: Tricks 'n' Tips
Topic: Capturing Audio [COMPLETE SOURCE]
Replies: 67
Views: 58839

Re: Capturing Audio [COMPLETE SOURCE]

Hi,

I downloaded the lame mp3-encoder from http://lame.sourceforge.net/index.php recently. Besides the lame_enc.dll there were also lame.exe and some examples in the package. One command line example was this:

# Streaming mono 22.05 kHz raw pcm, 24 kbps output:
cat inputfile | lame -r -m m -b 24 ...
by Susan20
Sun Dec 28, 2008 7:39 pm
Forum: Coding Questions
Topic: JOYPAD Lib under PB 4.30
Replies: 0
Views: 624

JOYPAD Lib under PB 4.30

Hi, in my mp3-player-code I use the excellent JOYPAD-Lib of Dr. Dri. It works fine under PB 4.20, but unfortunateley it is not compatible with PB 4.30. Can anyone help?

[To be honest, I must mention, that I posted this request a couple of days ago in the German forum. Sorry guys, to include the ...
by Susan20
Wed Aug 13, 2008 3:51 pm
Forum: Coding Questions
Topic: alternative for mci-commands
Replies: 5
Views: 2052

@Fluid Byte

Thanks a lot for your support!
by Susan20
Wed Aug 13, 2008 2:24 pm
Forum: Coding Questions
Topic: alternative for mci-commands
Replies: 5
Views: 2052

@Fluid Byte

You mentioned WaveMapper, DirectSound, FMOD and BASS. My question is: what do you recommend? I'm only a beginner with regard to programming. So the easiest way for me would be, if I could copy a lib into /PureLibraries/UserLibraries and if there would be a helpfile, in which the ...
by Susan20
Wed Aug 13, 2008 12:55 pm
Forum: Coding Questions
Topic: alternative for mci-commands
Replies: 5
Views: 2052

alternative for mci-commands

I wrote a mp3/wma-Player with some functions like display of the ellapsed and remaining time and jumps of certain time increments. I used the mci-send-string commands for that purpose. However, people told me that it is old-fashioned to use mci-commands. Does anyone know alternative commands with ...
by Susan20
Sat Apr 05, 2008 1:06 pm
Forum: Coding Questions
Topic: Callback and GetMessage
Replies: 2
Views: 1032

Callback and GetMessage

The SetWindowCallback function is a comfortable way with regard to the treatment of events. But according to the WinApi the API functions GetMessage, TranslateMessage and DispatchMessage should also work. My problem is: These functions require only a pointer to the structure MSG. How do they know ...
by Susan20
Thu Mar 27, 2008 3:43 pm
Forum: Coding Questions
Topic: USB-footswitch
Replies: 4
Views: 1221

In deed there are foot switches which emulate a certain joystick button or a mouse wheel. However, for those you need a certain configuration software. In my case though the PB-Standard-Devices like mouse and joystick won't work due to a missing configuration software.
by Susan20
Thu Mar 27, 2008 2:28 pm
Forum: Coding Questions
Topic: USB-footswitch
Replies: 4
Views: 1221

Thanks for the quick answer. The code does work with my 8-button-gamepad, but unfortunately not with my footpedal.
by Susan20
Thu Mar 27, 2008 11:32 am
Forum: Coding Questions
Topic: USB-footswitch
Replies: 4
Views: 1221

USB-footswitch

Hi, it is not too difficult to implement a 8-button-gamepad under PB. I'm so impressed by the power of PB, that I want more! The other day I connected a simple usb-footswitch to my computer being immediately recognized by Windows (must be kind of a standard device). Is it possible under PB 4.10 to ...
by Susan20
Sat Mar 08, 2008 9:55 pm
Forum: Coding Questions
Topic: GetAsyncKey and suppressing keystrokes
Replies: 5
Views: 1930

Thanks a lot for all the answers! Keyboard hook sounds reasonable, but it is not necessary. Using RegisterHotKey and SetWindowCallback has the effect I wanted. The code is only a few lines.

@tinman:
You got me on the right way!!