GetMusicQuantity
Quantity = GetMusicQuantity()
 
Parameters: NONE
Returns:

    Quantity = The number of Music's that PB currently has provision for
 

The GetMusicQuantity() function returns the max number of Musics that PB will allow.



FACTS:


* While a command sets TheQuantity command will return the Media Quantity of this command set. Not all command sets, allow you dynamically resize the media quantity yourself.




Mini Tutorial:


This example displays the default media quantity values of various command sets.

  
; Display the Media Quantity Values of various command sets
  
  Print "  Max Banks:"+Str$(GetBankQuantity())
  Print "Max Cameras:"+Str$(GetCameraQuantity())
  Print "   Max Dlls:"+Str$(GetDllQuantity())
  Print "  Max Files:"+Str$(GetFileQuantity())
  Print "  Max Fonts:"+Str$(GetFontQuantity())
  Print " Max Images:"+Str$(GetImageQuantity())
  Print "   Max Maps:"+Str$(GetMapQuantity())
  Print " Max Musics:"+Str$(GetMusicQuantity())
  Print "Max Sprites:"+Str$(GetSpriteQuantity())
  Print " Max Shapes:"+Str$(GetShapeQuantity())
  Print " Max Musics:"+Str$(GetSoundQuantity())
  Print " Max Worlds:"+Str$(GetWorldQuantity())
  
; Show the user the screen and wait for a key to be pressed
  Sync
  WaitKey
  



Example output. Note: The output depends upon what version of PB your running, so the results may differ.

  
  Max Banks:1024
  Max Cameras:16
  Max Dlls:256
  Max Files:64
  Max Fonts:64
  Max Images:1500
  Max Maps:128
  Max Musics:64
  Max Sprites:1500
  Max Shapes:500
  Max Musics:1024
  Max Worlds:64
  


 
Related Info: BankQuantity | DeleteAllMusics | DeleteMusic | FontQuantity | ImageQuantity | LoadMusic | LoadNewMusic | ShapeQuantity | SpriteQuantity :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com