LB Booster
General >> General Board >> !sound
http://lbb.conforums.com/index.cgi?board=general&action=display&num=1424011003

!sound
Post by bluatigro on Feb 15th, 2015, 1:36pm

i tryed the sound command
the info i got from a bbc basic site

error :
- it does not work
Code:
''sound channel , loud , pitch , time
''channel : 0 - 3        [ 0 = noise , 1-3 = muzik  ]
''loud : -15 - 0
''pitch : 0-7 , 0-255    [ 0-7 if channel = 0 ]
''time : -1 - 254         [ -1 = forever ]
!sound 0 , -15 , 7 , 10
 

Re: !sound
Post by Richard Russell on Feb 15th, 2015, 2:53pm

on Feb 15th, 2015, 1:36pm, bluatigro wrote:
i tryed the sound command
- it does not work

LBB requires BBC BASIC keywords to be in capital letters:

Code:
    !SOUND 0 , -15 , 7 , 10 

Richard.

Re: !sound
Post by bluatigro on Feb 16th, 2015, 09:00am

tryed Code:
''sound channel , loud , pitch , time
''channel : 0 - 3      [ 0 = noise , 1-3 = muzik ]
''loud : -15 - 0
''pitch : 0-7 , 0-255  [ 0-7 if channel = 0 ]
''duration : -1 - 254  [ -1 = forever ]
!SOUND 0 , -15 , 7 , 10
 


error :
- device unavailable in line 6
Re: !sound
Post by Richard Russell on Feb 16th, 2015, 09:27am

on Feb 16th, 2015, 09:00am, bluatigro wrote:
- device unavailable in line 6

The 'Device unavailable' error means that the waveOutOpen function failed. LBB attempts to configure the 'wave output' for 22,050 samples-per-second, 8 bits-per-sample, mono; it seems your PC does not have a device that supports that format, which is surprising (in fact I don't think I've ever had a similar report before).

You can try rebooting your PC. If that doesn't work check whether an updated driver is available for your sound hardware.

Richard.