» TeamX (����� ������)«


����� TeamX » ������������ » ��� � wav-� (Soundplay � ��������)

������� �� �����
<< ����. ����. >>
������������ �������� ���� ����

 
Raven
������������

������: ������
�����������: ����. 2004

�����: 408 ���������

����, ���� �������� ���������� ��� ����� ��������� �������.

int soundplay(string wav_file,unsigned int flags);

������ �������� (��������, "my_music/ambient/back.wav") - ��� � ���� � wav-�����. � ������ ���������� master_patches (�.�. ������ ����������� ���� - ������������ ����� data). Wav ������ ���� ��� ��������� (raw).

������. ������ ������ (������� WG):
---------------------
soundnormal � 0x0000
soundloop � � 0x0001
sound8bit � � 0x0000
sound16bit � �0x0002
soundmemory � 0x0100
soundstreamed 0x0200
soundmono � � 0x1000
soundstereo � 0x2000
---------------------

����� ������������. �� ���������, ��� ��� �������� ������ ���������� ������. ��� ��� ��� ������������ 8-�� ������� ����-�����, ����� ������� �������� 4096 (0x1000).

� ������ - ���� �������. ���� ��� ������� ���������� ���� � mp3 (����� � �������� ��� ��� �� ��� ��������?) � ���� ����, ��������� mp3->wav � ������. ��������� (�� ��������� ��� raw!), ���������� ��������� (��������, 16 ���, ������), ����� ������������ wav-� (����� ����� back.wav) � data/music. ����� ����� ������:
---------------------------------------
variable pause;
variable ret;

procedure start begin end

procedure critter_p_proc begin
end

procedure map_enter_p_proc begin
 ret:=soundplay("music/back.wav",8195); //8195=0x2000+0x0002+0x0001 (stereo, 16bit, loop)
end

procedure talk_p_proc begin
 if not pause then begin
   pause:=1;
   display_msg("Pause");
   soundpause(ret);
 end else begin
   pause:=0;
   display_msg("Resume");
   soundresume(ret);
 end
end
---------------------------------------
������������, ������������ � ������, ��������� ����. ����������? :-) ��� ���, �����������, �� ��� � � ������������ �����. ������ ������������ ����� ��������� ������. Soundplay ���������� "���������" �� ������������� ����. ���� ���������, ����� ������������� ���������.


� ������, ������, ���� �� ���� :-) �� �������� ��������� ������������, ������������ � �������� :-)

����, ��������� �����, �� ������� � ����, � ���������, ��� �������:
1. ����������� � ��������� soundrewind(p1) � sounddelete(p1).
2. ����������� ������� ������������� ������ �� ������������ �������� (��������� SelectFileList)
3. ����������� ������� ������������ ��������� ������ ��� �������� � ������ �����
4. ����������� � ������� soundmemory � soundstreamed

�������� :-) � ���� ���� ���������� ��������.

��, ���� �� ������� "�� ���, �������, ������ - �� ����� ����� �������� � ������ ���� ������ � wav-��?" - ���������� �� 1.1. �� ��������� :-) ������: ������ ����� ���������� � � ogg/mp3. � ������������ � wav ��� ��������� ����.

(��������������(�) Raven - 19:51 - 28 ���., 2005)


(���������� �� 14:22 - 28 ���., 2005.)


����������: ���� ���� �������������� (������), �� ����� stereo-����� ����� ������� � streamed-����.

����������: 12:48 - 28 ���., 2005
Ray
���������

������: ������,�������
�����������: ���. 2004

�����: 746 ���������

����������. �� ��� ���. ����� �������� ����� ����. �� �� ���� �����.
���� ���� ��� ������� :

>>3. ����������� ������� ������������ ��������� ������ ��� �������� � ������ �����

�� ������� ������� ���-��� ������.
1)� ���������� ������� �� �������� �����. Soundresume � soundpause  - ��� ����������� �������?
2)���������� ���������� ���� ������� � 4 ������. � ��� �� ����� 50 ������. � mp3 - 5. ��� ������ ������������ ����� ���� ������ ���������. � ����� �� ���������. ����� ����, ���� ����������� ���������� � �������������, ���� ����� ���������� ����� ���������. ����� ������ ���� �������� �� ���������� � ������(������ � ���� ����� ��������� - ��������, ����� ������, ��������� ��� ���������� ���� � ������. ) �������� wav - 44100 Hz, 16 bit per sample, ������.  �������� ���������� � 8195. ����� ���� ����.
(������ ����� �� ������, ��������� ���� �� ���� �� ������, �� � �� ��������.)


(���������� �� 14:54 - 28 ���., 2005.)


�� ������ ����� ������ �� ����� ����������. �������� ���������� ����.

-----
�� ������ ����������� ����� � ������ ���� �������.

����������: 14:52 - 28 ���., 2005
Raven
������������

������: ������
�����������: ����. 2004

�����: 408 ���������

>>�������� ���������� � 8195. ����� ���� ����.

��. ����������. ��� ������ - �� 0x2002, � 0x2202. ������� 8706. ����� ��� ����� �������, ��� ���� - �� ���� �����. � �������� �� �������. �����, � ����� ������ �����? ��� �� ������������ (����� � ���� ������) �� ������� ������?

>>1)� ���������� ������� �� �������� �����. Soundresume � soundpause  - ��� ����������� �������?

��. �� ��������. �� ����� ������� soundplay-� � ���� ����������? ���� - �� ���������? �� � ���� �� ��������� ���������? (�� �������, ��� � ���� �� ������ ������ � ����� ��� ������� ������� ����� :-) ������ - �����, ��������� ����?).

� � ������ ������� ��� ����� ������������, ��, �����, ��������. �� ��� crossfade-� (�������� �������� �� ��������� ����� ������) - ������ �� �����.


(���������� �� 15:06 - 28 ���., 2005.)


>>�� ������ ����� ������ �� ����� ����������. �������� ���������� ����.
� ���� ��� ���������� ���� ���� ��������� :-)

����������: 15:05 - 28 ���., 2005
Ray
���������

������: ������,�������
�����������: ���. 2004

�����: 746 ���������

������� ������������� ����, ������ ����������.
����������� ����������. ������� �������
>>��� �� ������������ (����� � ���� ������) �� ������� ������?
����. � ��� �� ������������ ���������� ?
� ���. Loop - ��� �� ������������ �� �����? � �� ��������� � ����� 10 ����� ����.

-----
�� ������ ����������� ����� � ������ ���� �������.

����������: 15:43 - 28 ���., 2005
Raven
������������

������: ������
�����������: ����. 2004

�����: 408 ���������

>>����. � ��� �� ������������ ���������� ?

��������� ��������� �����. ����� ����� ��������������� ������� ��������� �����. ���� � ���� ���� �������������, ������ ���� � ������, � ����� ����������� �� ���� (��� ��� - ����������� ������ ��� soundstereo+soundstreamed - 0x2200)

������, ��������� � �������� ������ ������. ������/����, 8/16. 2^2=4 ���������� (4096, 8192, 4610, 8706. ��� loop ������ 1). ������ �������� �� � ��. ���� ����������� �������� ���, �� ����� ����. ���� ����������� ������� ����� ������� - ���������� ������������ (������ �������� ��� ����) ��� ��������� (���� �������� ��� ������).

>>� ���. Loop - ��� �� ������������ �� �����? � �� ��������� � ����� 10 ����� ����.

��. ��� ������������.

����������: 16:50 - 28 ���., 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

��� ����� ����� ��������...
acm � ���� 22050 Hz. ����� ����, wav� ���� ������ ���� � ��� �� �������� �������������?

����������: 16:52 - 28 ���., 2005
Raven
������������

������: ������
�����������: ����. 2004

�����: 408 ���������

>>acm � ���� 22050 Hz. ����� ����, wav� ���� ������ ���� � ��� �� �������� �������������?

� ���� � 44100 ������� ��������, �����.

����������: 17:02 - 28 ���., 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

��, �� ������ � soundstreamed. � ��� ���� ��� ����� �� ��� ���� �������������? ;) ���� ���������.

�� ��� �� ����, ������ �� ������ ������� ��� :).


(���������� �� 17:24 - 28 ���., 2005.)


��, ������, ����� ����� ������������ ���������, ��� ���������, ������� "��������" �������� ���.

����������: 17:22 - 28 ���., 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

���������� ������������:
wav  22050 Hz, 16 ���, ������
������������� ��������� ��������� � ����� �������:
soundplay("17arroyo.wav", sound16bit bwor soundstereo bwor soundstreamed);
soundplay("17arroyo.wav", sound16bit bwor soundstereo);
�����, soundstreamed ����� ��������� ���� �����... ;)


(���������� �� 21:46 - 28 ���., 2005.)


��� ����. ���� ��� ����������, �� ��� � ����� � "����".

snd_handler soundplay(string file, int mode) - ����������� �������� ����
���������:
file - ��� (����) � ��������� ����� � ������� wav ��� raw � �������� ������������� 22050 ��
mode - �����:
soundnormal (0x0000)
soundloop (0x0001)
sound8bit (0x0000)
sound16bit (0x0002)
soundmemory (0x0100)
soundstreamed (0x0200)
soundmono (0x1000)
soundstereo (0x2000)
������������ ��������:
������������� ��������� ����� (snd_handler)
����������:
����� ������ ����� ��������������� ��� ������ bwor, ��������, ��� ������������ 16-������� ������ �������� mode ������ ���� ����� (sound16bit bwor soundstereo), � ��� "������������" ����� ����� - (sound16bit bwor soundstereo bwor soundloop).
����� ����� ������������� ������������ (�������������).

void sounddelete(snd_handler handler) - ������� (���������) ����, ��������� ��� ������ soundplay
���������:
handler - ������������� ��������� �����

void soundstop(snd_handler handler) - ���������� ������������ �����, ���������� ��� ������ soundplay
���������:
handler - ������������� ��������� �����

void soundpause(snd_handler handler) - ����� �����, ���������� ��� ������ soundplay
���������:
handler - ������������� ��������� �����

void soundresume(snd_handler handler) - ����������� ������������ �����, �������������� soundpause
���������:
handler - ������������� ��������� �����
����������:
���� ���� ��� ���������� ��� ������ soundstop, �� ������������ �� ����� �������������� � ������� ������ soundstop, � �� � ������ �����, ��� ��� ������� ����� ����� ��������� �� ������ ����

void soundrewind(snd_handler handler) - ��-���� ��������� � ������, �� � ���� (F2 v1.02d eng) �� ��������
���������:
handler - ������������� ��������� �����

�� � ���� ����� 44 ��� ������������� ���������� ��� ����������� �� ������� ����� soundstreamed. ������ F2 1.02d eng.

����������: 20:30 - 28 ���., 2005
ABel
��������

������: Krasnoyarsk
�����������: ���. 2002

�����: 307 ���������

��� �������, ��� ���� WAV� ����������� �� �����.
�� ��, ��� RAW �������������.
��������� ��������� ���� �����������, � �����.

-----
���� ��� �� �����, ���� - �� �����.

����������: 12:08 - 4 ���., 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

��... � ���� ����� ����. ��� ������������ ���� ������� �������� �����-�� ����������� �����. ��� ������������ ���� ������ ���.

����������: 18:02 - 4 ���., 2005
Raven
������������

������: ������
�����������: ����. 2004

�����: 408 ���������

����. ��� �� �������� � ������ �����, ��� ����� ������ raw-����. ����� � acm-�� "������", � frm. �� ������� ����� ����������� ���� ��� ����� ������ ��� raw wav.

����������: 18:29 - 4 ���., 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

��� � ���� ���������� :). Raw ��� raw, � wav ��� wav :).

����������: 17:36 - 5 ���., 2005
tracktor
������������

������: ������
�����������: ���� 2004

�����: 183 ���������

��������� ����, ���, ���������� ����� RAW

����������: 20:48 - 5 ���., 2005
Perceptron
���������

������: Ivanovo
�����������: ��� 2003

�����: 502 ���������

��-�����, RAW - ��� WAV ��� ���������, �.�. ������ ������ � �����. �� ����, ���������� ������. ������ ���������� ������� ������������� � ������� �������.

����������: 22:17 - 5 ���., 2005
tracktor
������������

������: ������
�����������: ���� 2004

�����: 183 ���������

����...

����������: 23:34 - 5 ���., 2005
ROCK
������������

������: �.�������
�����������: ����. 2005

�����: 110 ���������

� ������ ���-���� ����� ��������?
�������� ��� �� ��3 ������������������ � Raw ��� wav?� ��� ����� ��� ��� ��� ACM?
� ��������� ������ �� �����-�������� �� �����-��� �� �����������,���� �� ������!

����������: 14:29 - 13 ����, 2005
Strongholder
��������� MkII

������: Nelly's Bar
�����������: ��� 2004

�����: 393 ���������

������:

��� �� ��3 ������������������ � Raw ��� wav?


����� �����-������ ���������� �������������, � ������� Cool Edit [ftp://listsoft.ru/pub/1349/ce2kmain.exe] (��������� ��� ������), ������ �� ������ ��3���� � ������� ��� PCM Raw.
������:

� ��� ����� ��� ��� ��� ACM?


�������� ����������� ��������� ���������������� � ������� ��������� ������ ������������. ������ �����. � ���������� ������...
������:

� ��������� ������ �� �����-�������� �� �����


������������ ����������! Raven ��� ��� �� ������� ������ �� ������ � �������� �� � ������ �����.
�"��-�, ������� ������� �����..."
����� - ���������� � ���������� �� hex � dec. ��������� ����� � ��� �������... ���� ����� ��� ���������� - ������� ������ ���� (��� ��������� ����� ������� � � ���� ����������).

-----
������� � ������ ������. �������� �� �� ���.

����������: 16:19 - 13 ����, 2005
ROCK
������������

������: �.�������
�����������: ����. 2005

�����: 110 ���������

� ����������-� ���� �� ����� �������� �����-�������� ����� ������.-����� �������-� �� ��� ����� ������!
��� �������?

����������: 11:14 - 14 ����, 2005
Wasteland Ghost
��������� ���� ����������

������: ������, ������
�����������: ���. 2002

�����: 2251 ���������

ROCK, ������ ���������� ������� �� ����� ������������. � ������������. � ������, � � ����� � ������ :(. ������ � ������ ������������� � maps.txt ����� �������� music. ��� ��� ����-��?

����������: 12:20 - 14 ����, 2005
Strongholder
��������� MkII

������: Nelly's Bar
�����������: ��� 2004

�����: 393 ���������

���� � ������� �����������, �� ������������� ����� � ACM ��������� � �� ��������. � ������ �����, ������...

������� �: �� ��������� ���...
WG


�����-�����...



(��������������(�) Strongholder - 17:02 - 14 ����, 2005)

-----
������� � ������ ������. �������� �� �� ���.

����������: 12:34 - 14 ����, 2005
 

������� �� �����
<< ����. ����. >>
������������ �������� ���� ����


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