Sound in C++

This is a discussion on Sound in C++ within the C++ Programming forums, part of the General Programming Boards category; Ive seen many libraries for sound (Bass, openal) etc. im trying to ask which sound Library is best for streaming ...

  1. #1
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Question Sound in C++

    Ive seen many libraries for sound (Bass, openal) etc. im trying to ask which sound Library is best for streaming live sound of the internet.

    Ive tried Bass with the code blocks/gcc compiler but all it gives me when i try to compile the samples is this:

    .objs\basstest.o:basstest.c:(.text+0xa)||undefined reference to `_BASS_ErrorGetCode@0'|
    (and 29 other identical errors)

    can anyone tell me how to fix this or another way to stream audio files from the internet

    ive already added bass.h to the include folder and bass.dll and bass.lib to the project folder
    Last edited by kakayoma; 08-18-2009 at 05:56 AM.

    Vista - Something We all Love to Hate.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    What do you mean you added them to the project tolder? Just copied them? Are you telling the compiler where to find headers and libraries and to link with the libraries?

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    It depends on the context. Do you mean streaming VOIP, streaming say mp3's, something else entirely?
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  4. #4
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation Reply

    I am looking at streaming something like live wma files

    I just copied them into the folder i didnt link them

    Vista - Something We all Love to Hate.

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    And how exactly do you intend to stream them. I am assuming (since this is a C/C++ forum) that you want to be able to send the data over the network to a client application that you are also writing. I would suggest using DirectSound to capture the raw audio, then use a real time compression codec and send it over a socket.

    This assumes its a hobby project. If you are writing a commercial product I recommend the TeamSpeak 3 SDK. It comes with a robust API and integrated codec's.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #6
    Registered User kakayoma's Avatar
    Join Date
    Jul 2009
    Location
    Dallas, Texas
    Posts
    42

    Exclamation

    Actually I found the solution to my problem

    oh ya the audio is from some live internet broadcast (not mine )(belongs to a non profit organization)

    Vista - Something We all Love to Hate.

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    10
    How about VOIP streaming ?

  8. #8
    Registered User hackterr's Avatar
    Join Date
    Aug 2009
    Location
    INDIA
    Posts
    19

    hey...

    kakayoma....wud you share with the class.....wt solved your prob?
    Its 5.50 a.m. Do you know where your stack pointer is?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sound lags in multi-thread version
    By VirtualAce in forum Game Programming
    Replies: 23
    Last Post: 08-27-2008, 11:54 AM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 12:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  4. Help me modify my Sound Server
    By zdude in forum C Programming
    Replies: 1
    Last Post: 05-14-2003, 05:15 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 02:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21