| 
 
| 
|  Author | Topic: !sound  (Read 458 times) |  |  
| 
| 
| bluatigro Full Member
 
 
 member is offline
 
  
 
 
 
 
  
 Gender:
  Posts: 111
 
 | 
|  | !sound « Thread started 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
  |  
| 
|  |  Logged |  
 |  |  |  
| 
| 
| Richard Russell Administrator
 
 
 member is offline
 
  
 
 
 
 
    
 
 Posts: 1348
 
 | 
|  | Re: !sound « Reply #1 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:
 Richard.
 
 |  
| 
|  |  Logged |  
 |  |  |  
| 
| 
| bluatigro Full Member
 
 
 member is offline
 
  
 
 
 
 
  
 Gender:
  Posts: 111
 
 | 
|  | Re: !sound « Reply #2 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
 |  
| 
|  |  Logged |  
 |  |  |  
| 
| 
| Richard Russell Administrator
 
 
 member is offline
 
  
 
 
 
 
    
 
 Posts: 1348
 
 | 
|  | Re: !sound « Reply #3 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.
 |  
| 
|  |  Logged |  
 |  |  |  
 |