Need to do some stuff with 'sounds'

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Hi all. I wanna code a little WAVE-Player using the Sound-lib. Now, is there any way to pause and resume a playing Sound and to seek (modify) the current position in the WAVE??? I will be grateful for your help!!!

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

You could take a look at the BluePlayer that was posted on the Resources Site (in the Apps section).

I think it does what you are looking for.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

No way. It uses the Movie-lib and I'm using the sound-lib.

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

The only control you have over a WAV file with the Sound Library is Start/Stop/Pan/Volume/Fequency.

For Seek/Pause ability you must use the Movie Library.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Is there no API solution???

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.
Is there no API solution???
You just said you wanted to use the Sound Lib ?!

Anyways, for API commands you could probably look up "waveOut" in the API docs for playing/manipulating WAV files.

(haven't actually tried them myself because it looks like a lot of work and I can do everything I need with the Sound and Movie Libs)

MCI commands will also play WAV and pause/cue/return position, etc. but it's not really any different than using the Movie Lib.

Good luck.


...just curious, why don't you want to use the Movie Library?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Because of one silly disadvantage: I can't set the frequence of the sound. Do you know a list with all API-command under windows?

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Yes, download the Windows Platform SDK from Microsoft.

http://www.microsoft.com/msdownload/pla ... sdkupdate/
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Done it. And what now???

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

You could probably start by looking up waveOutOpen and go from there.

Have fun :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

Where? Where shall I start looking?

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

The Platform SDK installs many help files
in \Platform SDK\help\.
Look in the StartMenu... there you´ll find
the start help file for the Platform SDK.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by merendo.

No way. I've searched under programs. But there isn't a such a menu.

Cu @ll, merendo
--
I've been hiding - What am I hiding from???
Post Reply