Code covered by the BSD License  

Highlights from
play_sound

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.86 KB File ID: #24033

play_sound

by Phillip M. Feldman

 

07 May 2009

play_sound loads and plays the specified sound file.

| Watch this File

File Information
Description

OVERVIEW

play_sound(id) loads and plays the specified sound file.

INPUTS

id identifies the sound file to be loaded, and can be either a string or an integer. If id equals zero, play_sound returns immediately without playing any sound. If id is an integer between 1 and 6, the value is mapped to a Windows system sound as follows:

1: chimes 2: chord 3: ding 4: notify 5: tada 6: Windows XP Battery Critical

If id is a string, the string may include the full path to the file. If the path is not provided, play_sound looks in the current directory, and then in the directory C:\Windows\media.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Aug 2009 Tim

Missing function substr

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
sound Phillip M. Feldman 08 May 2009 10:11:43
play_sound Phillip M. Feldman 08 May 2009 10:11:43
sound file Phillip M. Feldman 08 May 2009 10:11:43
beep Phillip M. Feldman 08 May 2009 10:11:43
chimes Phillip M. Feldman 08 May 2009 10:11:43
chord Phillip M. Feldman 08 May 2009 10:11:43
ding Phillip M. Feldman 08 May 2009 10:11:43
tada Phillip M. Feldman 08 May 2009 10:11:43

Contact us at files@mathworks.com