Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
57 user(s) are online (53 user(s) are browsing Forums)

Members: 0
Guests: 57

more...

Support us!

Headlines

 
  Register To Post  

Audio Datatypes playing question.
Quite a regular
Quite a regular


See User information
Hello.

when we play a datatype sound using the :
IIntuition->IDoMethod( MySoundPTR, DTM_TRIGGER, NULL, STM_PLAY, NULL );

Is there a way to:
1. Change the sound playback volume ?
2. Change the left/right pan values ?
3. Make a sound to loop?
4. Get informations on actual values for 1., 2. and 3. ?

I've checked the STM_xxxx flags and none of them answered me.

If someone know.
Please help.

Sincèrely
AmiDARK

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Audio Datatypes playing question.
Not too shy to talk
Not too shy to talk


See User information

STM_ are methods. You need to look for attributes which are called STA_.


Go to top
Re: Audio Datatypes playing question.
Quite a regular
Quite a regular


See User information
Hello Thomas,
I've found attributes called : SDTA_xxx
I think they're the correct ones ;)

Thank you for your answer.

Kindest Regards,

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Audio Datatypes playing question.
Not too shy to talk
Not too shy to talk


See User information

Go to top
Re: Audio Datatypes playing question.
Quite a regular
Quite a regular


See User information
Sorry for the off topic.

@Thomas

Thomas, did you ever considered joining the official wiki effort for documenting AmigaOS (see AmigaOS wiki)? Your knowledge, your experience and your almost endless samples may really help improving our OS documentation. All those years each time I saw you giving advice or sample it was exactly answering the problem.

Back to a quiet home... At last
Go to top
Re: Audio Datatypes playing question.
Quite a regular
Quite a regular


See User information
@abalaban

...I would even consider to state that Thomas actually *IS* the AmigaOS-Wiki!

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: Audio Datatypes playing question.
Just can't stay away
Just can't stay away


See User information
@freddix

I wrote a simple sample playing engine using AHI device interface and PCM WAV files for a Missile Command clone. You can find the source code for it here (check audio_ahi.c and audio_io.c files):
http://dl.dropbox.com/u/26599983/misscmd-src.7z

Alternatively you could just use SDL_mixer which has support for more sample formats and far more advanced API.

Go to top
Re: Audio Datatypes playing question.
Quite a regular
Quite a regular


See User information
@Thomas :
Thank you.
Your sample show a more friendly way to use Datatypes :p

@Salass00:
Thank you for your sample too :)
Really interesting sample for AHI use.
I will investigate your sample when I'll add 3D sound :)

Kindest Regards,
AmiDARK

All we have to decide is what to do with the time that is given to us.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project