WavPlayer               package:sound               R Documentation

_S_e_t _o_r _G_e_t _t_h_e _C_o_m_m_a_n_d _f_o_r _P_l_a_y_i_n_g _W_A_V _F_i_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     'findWavPlayer' returns the most common system commands on your OS
     for playing wav files.

     'WavPlayer' returns the command that is currently used by 'play'.

     'setWavPlayer' is used to define the command that is used by
     'play'.

_U_s_a_g_e:

     findWavPlayer()
     WavPlayer()
     setWavPlayer(command=NULL)

_A_r_g_u_m_e_n_t_s:

 command: a vector of character strings giving the command to be used
          as '"command wavfile.wav"'. If it contains more than one
          string, the commands are tested one after the other, and the
          first one that works properly will be used for future calls
          of the 'play' command. If 'command=NULL',the command
          'findWavPlayer()' is used to determine the standard commands
          for your system. 

_D_e_t_a_i_l_s:

     The 'play' command makes a system call of the form '"'command'
     'wavfile'.wav"', where 'command' is the string returned by
     'WavPlayer()'.

     The default commands are ''mplay32 /play'' (calling the Windows
     media player) for Win32-systems and ''play'' and ''playwave'' for
     Linux systems. Other commands will be added in future versions of
     this package.

     While the Windows Media player is included in the standard Windows
     installation, playwave might have to be installed manually. Under
     RedHat Linux playwave is part of the SDL_mixer package. To
     download it, go to <URL:
     http://www.libsdl.org/projects/SDL_mixer>.

     But any other program that provides a system call of the above
     form to play wav files is also fine. Please report additional play
     commands to the author (send an email to mail@MatthiasHeymann.de)
     so that they can be recognized automatically in future versions of
     this package.

     'setWavPlayer' is called directly after loading the package.

     When 'setWavPlayer' is called, it tries to play an empty wav file,
     using the new command(s). If it fails, no changes are made.

_V_a_l_u_e:

     'WavPlayer' returns the wav play command that is currently used,
     or 'NULL', if none is selected yet.

     'findWavPlayer' returns the default commands for your system, or
     'NULL', if no command is known for your system.

_A_u_t_h_o_r(_s):

     Matthias Heymann

_S_e_e _A_l_s_o:

     'play' for playing Sample objects or wav files.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     setWavPlayer("playwave")
     # tries to set the command "playwave wavfile.wav" as the 
     # preference for playing wav files with the play command.
     # If successful,
     WavPlayer()
     # returns the string "playwave" afterwards.
     ## End(Not run)

