LB Booster
« !sound »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:54am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: !sound  (Read 459 times)
bluatigro
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 111
xx !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
 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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:
    !SOUND 0 , -15 , 7 , 10 

Richard.
User IP Logged

bluatigro
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 111
xx 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
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx 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.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls