====== AUDIO ====== /* Remove the comments after creating content for each section.*/ Suspends or turns sound channels off or on; also used for allowing sound from a cassette player to be passed to a TV used as monitor /* For the lines below, just create links, separated by commas, to other pages of the BASICs section, like [[:basics:basicTagName]]. "Implemented by" should mention BASICs which implement the keyword like described, in a more usual and standard way. "With variations" should point to BASICs where this keyword is used a bit differently. "Also written as" should list alternative spellings and abbreviations this keyword has. No need to refer to a BASIC, there is a section for that later. */ **Implemented by:** [[:basics:ABasiC:]] **With variations:** [[:basics:trscolor:]] (pass sound output from cassette to TV) **Also written as: ** ===== Usage ===== /* For inline examples of syntax, write the keyword between '' and '' (two single quotes) */ In the original [[:basics:ABasiC:|Amiga BASIC]], AUDIO was used along [[SOUND]] as a switch for any or all of the Amiga's 4 sound channels at once. Its first parameter was an integer number between 0 and 15, whose binary representation would be used as a mask for right-to-left, 0 to 3 channel selection: 11, for example, as 1011 in binary, would make the statement act on channels 0, 1 and 3. The second argument is an integer representing the action itself: * -1 disables sound on the selected channel(s) and wipes away the current SOUND configured there. * 0 suspends sound on the selected channel(s). The SOUNDs configured for such channel(s) are kept in memory, and a further call to AUDIO with 1 or any positive integer will make them play again. * 1 (or any positive integer) resumes SOUND in the selected channel(s). ' Disable sound on channel 2 AUDIO 4, -1 ' Resume sound on channels 2 and 0 AUDIO 5, 1 ==== Variations ==== In the [[:basics:trscolor:|TRS Color]] BASIC, AUDIO is used for enabling or disabling sound passthrough from the cassette player used as secondary memory to the television set eventually used for video output. This would //presumably// allow for analog music and sounds intertwined with software on a tape to be used in games and such, probably before //multimedia// was a term found in printed material. ===== Comments ===== /* Origin of the keyword, opinions, history... */ ===== Related keywords ===== /* Keywords that are often or always used along this one */ * [[SOUND]] ===== Similar keywords ===== /* Keywords with the same or similar functionality found in other versions of BASIC */ * [[PLAY]] OFF in ugBASIC ===== In other languages... ===== /* For parallels and comparisons with other modern-day languages */ ===== References ===== /* If you used the ((citation)) syntax elsewhere in the text, they will appear under this section. But you can write some recommendations of books, magazines, etc */ * //Amiga ABasiC Reference Manual//. Commodore-Amiga, Inc., 1985 /* ===== TAGS ===== Please use the syntax below for adding tags to this page, separated by spaces (use quotes for tags with spaces). The most important tags to be used are, separated by groups: - Statements | Commands | SpecialVariables | Operators {{tag>tagName}} */ {{tag>Statements Sound}}