» TeamX (Архив Форума)«


Форум TeamX » English Forum » soundplay function

Переход по темам
<< Пред. След. >>
Единственная страница этой темы

 
numero
Member

Регистрация: Май 2007

Всего: 2 сообщения

Hi,
since i cant really understand the russian text about soundplay, could someone say how i could play files from the sfx folder?

I could use play_sfx(), but i have to be able to "stop" the playing aswee, and i think there is this function soundstop for that.

Any clues how to do this ?

Отправлено: 22:53 - 8 Мая, 2007
Wasteland Ghost
Маленькое Злое Привидение

Откуда: Россия, Самара
Регистрация: Дек. 2002

Всего: 2251 сообщение

You can't play sfx with soundplay, this function works only with the raw-files.

Btw, what kind of sfx you want to play? There are special functions for playing sfx, you must use them for playing weapon sounds, scenery sounds etc.

Отправлено: 12:56 - 11 Мая, 2007
numero
Member

Регистрация: Май 2007

Всего: 2 сообщения

The sfx is a song converted to .ACM, used in one nice little quest

So i should be able to play song in this script, it works with play_sfx, but i am not able to stop the music from playing.

Raw-files ? You mean pure audio in PCM format ?

In the soundplay description, what does the snd_handle mean ? How can i declare my own snd_handler ? Since i need it in soundstop(snd_handler), right ?



thanks for answering

Отправлено: 19:21 - 11 Мая, 2007
Wasteland Ghost
Маленькое Злое Привидение

Откуда: Россия, Самара
Регистрация: Дек. 2002

Всего: 2251 сообщение

Цитата:
Raw-files ? You mean pure audio in PCM format ?

Uncompressed wav files without a header. Samples only. With the 22050 Hz sampling rate.

Цитата:
In the soundplay description, what does the snd_handle mean ? How can i declare my own snd_handler ? Since i need it in soundstop(snd_handler), right ?

snd_handler is a value returned by soundplay function. It is a unique ID of a sound. Example:
Код:
h_my_music := soundplay("myfile", sound16bit bwor soundstereo bwor soundloop); 
soundstop(h_my_music);
soundresume(h_my_music);


Отправлено: 11:50 - 12 Мая, 2007
 

Переход по темам
<< Пред. След. >>
Единственная страница этой темы


Powered by Ikonboard 2.1.9 RUS
Modified by RU.Board Team
© 2000 Ikonboard.com