SCI Kernel Documentation/Sound Functions: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
 
Andrew Branscom (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:SCI Pages]]
[[Official SCI Documentation]]<br />
[[Official SCI Documentation]]<br />
 
[[SCI Kernel Documentation|Table of Contents]]
&nbsp;
<div align="center">
<div align="center">
Chapter:  
Chapter:  
Line 21: Line 23:
[[SCI Kernel Documentation/Debugging Functions|17]] |  
[[SCI Kernel Documentation/Debugging Functions|17]] |  
[[SCI Kernel Documentation/Index|Index]]
[[SCI Kernel Documentation/Index|Index]]
</div><br />
</div>
 
<div align="center"><span style="font-size: 22pt">Sound Functions</span><br />''Author: [[Jeff Stephenson]] &nbsp; 1988-04-04''<br />''Revision by: [[David Slayback]] &nbsp; 1989-07-25''</div></div>
<div align="center"><span style="font-size: 22pt">Sound Functions</span><br />
''Author: [[Jeff Stephenson]]''<br />
''Revision by: David Slayback''</div>
 
&nbsp;


<br />
==<br /> Sound Functions ==
==<br /> Sound Functions ==


Line 103: Line 101:
</blockquote>
</blockquote>


&nbsp;
==<br /> References ==
 
<references /><!-- Do not edit this section. It is autopopulated by <ref></ref> tags -->


;Notes
==<br /> Also See ==
<references />


* [[:Category: Documentation| Documentation]]
* [[:Category: Official Documentation| Official Documentation]]
* [[:Category: Kernel Functions| Kernel Functions]]
* [[Sound Resource (SCI)]]
* [[SCI Specifications: Chapter 1 - Introduction#SND|Sound Resources in the SCI Specifications]]
* [[:Category:Sound Resources|Sound Resource Articles]]
&nbsp;
&nbsp;


[[SCI Kernel Documentation | Table of Contents]]
[[Official SCI Documentation]]<br />
 
[[SCI Kernel Documentation|Table of Contents]]
&nbsp;


<span style="float: left">[[SCI Kernel Documentation/Window and Text Functions|&lt; Previous: Window and Text Functions]]</span>
<span style="float: left">[[SCI Kernel Documentation/Window and Text Functions|&lt; Previous: Window and Text Functions]]</span>
<span style="float: right">[[SCI Kernel Documentation/Arithmetic Functions|Next: Arithmetic Functions &gt;]]</span>
<span style="float: right">[[SCI Kernel Documentation/Arithmetic Functions|Next: Arithmetic Functions &gt;]]</span>
&nbsp;
&nbsp;
 
[[Category:References]]
[[Category:Historical Pages]]
[[Category:Development]]
[[Category:Documentation]]
[[Category:Documentation]]
[[Category:SCI Documentation]]
[[Category:Official Documentation]]
[[Category:SCI Kernel Functions]]
[[Category:Technical Info]]
[[Category:SCI Sound Resources]]
[[Category:Kernel Functions]]
[[Category:SCI Sound Functions]]
[[Category:Sound Functions]]
[[Category:Sound Resources]]

Latest revision as of 20:15, 25 December 2025

Official SCI Documentation
Table of Contents  

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Index

Sound Functions
Author: Jeff Stephenson   1988-04-04
Revision by: David Slayback   1989-07-25



Sound Functions


(DoSound InitSound sound)

Initialize the sound. Will set handle property of object to the internal sound node.


(DoSound PlaySound sound)

Plays the sound, if no other higher priority sounds are playing.


(DoSound NextSound)

Not implemented yet.


(DoSound KillSound handle)

Kill the sound given in handle.


(DoSound SoundOn [soundFlag])

If soundFlag is present, it will either turn on sound output if soundFlag is TRUE or turn off sound output if soundFlag is FALSE. If soundFlag is not present, it will returns TRUE if sound output is on, FALSE otherwise.


(DoSound StopSound handle)

Stop the sound specified in handle from playing.


(DoSound PauseSound value)

If value is TRUE, pause all the active sounds and set state to SND_BLOCKED.. If value is FALSE, then unpause all blocked sounds.


(DoSound RestoreSound)

Loads all sounds in sound list and starts playing the one that is active that has the highest priority.


(DoSound ChangeVolume vol)

Sets the volume to vol, where vol can be between 0 and 100.


(DoSound ChangeSndState soundObj)

Change the state of the internal sound node to correspond to the values in soundObj.


(DoSound FadeSound handle)

On systems with volume control, fade away the sound given in handle. Otherwise, a StopSound is implemented in the music driver.


(DoSound NumVoices)

Returns the number of voices in the sound hardware.


References



Also See

 

Official SCI Documentation
Table of Contents

< Previous: Window and Text Functions Next: Arithmetic Functions >