Sounds Logical
Send Page To a Friend

Table Of Contents Previous Page Next Page

[M-Pack 1 overview]

M-Pack 1: WAV file processing: MATLAB function reference

playwavgui
Version 1.2 Requires MATLAB 6.0 (R12) or later

Graphical interface for WAV file player (PC-Windows only, default soundcard).

The "Browse" button is used to select a WAV file for playback, the other buttons provide the conventional "playback control" functions.

Note: only supports sample rates and bit-resolutions compatible with given soundcard driver (typically 8000, 11025, 22050, or 44100 Hz and 8- or 16-bits).

File format: m-file
Editable source code:
yes
Utilises non-editable functions: yes (mex dll's)
Platform:
PC/Windows
Required MATLAB Toolboxes: none (except core MATLAB)
Demo version limitations: p-code only (non-editable); demo banner displayed
Syntax:
 

playwavgui;

  playwavgui(WavFileName);
  playwavgui(WavFileName,LoopFlag);
Arguments:
Inputs:
WavFileName

[Optional] string containing the filename (including full path) of the WAV file to be played on creation of the GUI. If omitted, the GUI is opened without auto-starting playback of any file.

LoopFlag

[Optional] flag for setting loop mode. If value of 1, WAV file is looped, otherwise, WAV file is played once only. Note: only valid when WavFileName specified for auto-start playback at creation of GUI.

 

Multiple interfaces may be opened simultaneously. The "Play" button of the currently-selected interface will take precedence. The "Stop" button in any interface will affect all others.

This GUI calls the mex function winplaywav to perform the WAV playing.

 

  playwavgui GUI for convenient access to winplaywav
Examples:
Open the GUI without a default file selection
  playwavgui;
   
Open the GUI and play the file myWAVfile.wav located in the working directory
  playwavgui('myWAVfile.wav');
   
Open the GUI and play the file myWAVfile.wav located in directory C:\
  playwavgui('C:\myWAVfile.wav');
   
Open the GUI and loop indefinitely through the file myWAVfile.wav until the "Stop" button is pressed (or winplaywav is called without any arguments):
  playwavgui('C:\myWAVfile.wav',1);
 

Top Of Page Table Of Contents Previous Page Next Page

Send Page To a Friend

home - news - products - store - support - site map - company info
© 2007 Sounds Logical. All rights reserved.
Sounds Logical
legal notice - privacy statement