19 Jun '13 - 01:15 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: linux glx  (Read 390 times)
thedardanius
Posts: 2


« on: 31 May '12 - 17:00 »
Reply with quoteQuote

hey,

So Im using BASS for my free game engine (C++). Im currently porting it to linux fomr windows, but I see the some functions require HWND as an argument, and in the tutorial with the download pacakge, they use gtk. But im using low-level glX/Xlib for linux window handling, how should I implement BASS then???
Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #1 on: 31 May '12 - 17:41 »
Reply with quoteQuote

A window handle is only needed by BASS_Init on Windows (to initialize DirectSound), so you can just pass it NULL on Linux.
Logged
thedardanius
Posts: 2


« Reply #2 on: 1 Jun '12 - 20:36 »
Reply with quoteQuote

really??But why do you need directsound on windows if you already have BASS, since Bass works independantly, right??? And on linux, it just works itself, without any dependancies like other lowerlevel libraries???
Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #3 on: 4 Jun '12 - 16:37 »
Reply with quoteQuote

Software doesn't communicate directly with the soundcard on a modern OS. Even if that was possible, there are too many different soundcards for any software to feasibly support them all. Instead, the manufacturers provide drivers for the OS to access the soundcard, and the OS provides APIs for other software to access them. On Windows, that means waveOut or DirectSound (if pre-Vista support is required), and DirectSound was chosen due to better performance (hardware acceleration). On Linux, BASS uses ALSA.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines