Original Author Paul Laughton, 2011
Page 190
De Re BASIC!
The rate value changes the playback rate of the playing stream. The normal rate is 1. The minimum rate
(slow) is 0.5. The maximum rate (fast) is 1.85.
Soundpool.setvolume <streamID_nexp>, <leftVolume_nexp>, <rightVolume_nexp>
Changes the volume of a playing stream.
The left and right volume values must be in the range of 0 to 0.99 with zero being silent.
Soundpool.setrate <streamID_nexp>, <rate_nexp>
Changes the playback rate of the playing stream.
The normal rate is 1. The minimum rate (slow) is 0.5. The maximum rate (fast) is 1.85.
Soundpool.setpriority <streamID_nexp>, <priority_nexp>
Changes the priority of a playing stream.
The lowest priority is zero.
Soundpool.pause <streamID_nexp>
Pauses the playing of the specified stream. If the stream ID is zero, all streams will be paused.
Soundpool.resume <streamID_nexp>
Resumes the playing of the specified stream. If the stream ID is zero, all streams will be resumed.
Soundpool.stop <streamID_nexp>
Stops the playing of the specified stream.
Soundpool.release
Closes the SoundPool and releases all resources. Soundpool.open can be called to open a new
SoundPool.
GPS
These commands provide access to the raw location data reported by an Android device's GPS
hardware. Before attempting to use these commands, make sure that you have GPS turned on in the
Android Settings Application.
The Sample Program file, f15_gps.bas is a running example of the use of the GPS commands.
There are two kinds of data reports: GPS status and location data. They are not reported at the same
time, so there is no guarantee that overlapping information matches. For example, the location data
report includes a count of the satellites used in the most recent location fix. The same information can
be derived from the GPS status report. If number of detected satellites changes between reports, the
two numbers do not agree.