| View previous topic :: View next topic |
| Author |
Message |
Raymond175 Contributor


Joined: 24 Apr 2002 Posts: 72
|
Posted: Wed Jan 14, 2004 5:45 pm Post subject: Changing pitch/tempo of MPEG-stream... (Anybody? please?) |
|
|
Hello fellow-VDS-programmers!
I'm having big troubles with the program I'm making. The main task my program must do is play MPEG-files (MP3) which is not diffycult at all. Second is that I HAVE TO change the pitch/tempo of the output...
This program is for a ballroom-teacher so there MUST BE a pitch/tempo controll, but I cannot find any way to get this in VDS...
Please help
Raymond
PS: SEE ALSO MY REPLY 2 POSTS BELOW...
Last edited by Raymond175 on Fri Jan 16, 2004 3:43 pm; edited 2 times in total |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jan 14, 2004 6:15 pm Post subject: |
|
|
I think direct sound is the way to go. You may search the net if you can find some win32 dll so that you can call from VDS if VDS 5 or use gadget DLL to call it.
Alternatively you can get a custom dll made for VDS from someone. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Raymond175 Contributor


Joined: 24 Apr 2002 Posts: 72
|
Posted: Wed Jan 14, 2004 8:52 pm Post subject: |
|
|
I just came accross my mind, and maybe it's what you mean with directsound... Is it possible to change the pitch/tempo of the output of the soundcard?
I do not know much about the windows API, but maybe it's possible to achieve this via the API-flags? I've got a txt-file with 15671 API-flags and I came across these 9 API flags:
- DMUS_TEMPO_MAX = 1000
- DMUS_TEMPO_MIN = 1
- MIDIPROP_TEMPO = 2
- MM_IOMAGIC_TEMPO_AUXOUT = 6
- MM_IOMAGIC_TEMPO_MIDIOUT = 4
- MM_IOMAGIC_TEMPO_MXDOUT = 5
- MM_IOMAGIC_TEMPO_SYNTH = 3
- MM_IOMAGIC_TEMPO_WAVEIN = 2
- MM_IOMAGIC_TEMPO_WAVEOUT = 1
Isn't there something possible with this? TEMPO_WAVEOUT sounds good to me, but I don't have a clue how to use this Maybe do you...
Thanks,
Raymond
PS: I've also looked at the gadget-dll, but I do not see any information in this dll which can change the way my mp3's are played...
Last edited by Raymond175 on Wed Jan 14, 2004 9:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jan 14, 2004 9:08 pm Post subject: |
|
|
Hi Raymond,
I think what Codescript was saying is that you will have to use a Non-VDS DLL to do what you want to do This means that you will have to use either VDS 5's built-in ability to call Non-VDS DLL's or use either Gadget or VDSug to call the Non-VDS DLL. A couple of DLL's that you might want to check into is the Bass.dll and the fmod.dll... I working on a demo for my Gadget DLL that will use the functions from Bass.dll to allow you to use Bass.dll's full API. I have most of it coded already but I have not posted it as of yet. Also I am unsure if Bass.dll can handle multi-soundcards. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|