play_sound
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.
Cita come
Phillip M. Feldman (2024). play_sound (https://www.mathworks.com/matlabcentral/fileexchange/24033-play_sound), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tag
Community
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |