Hi everyone,

This is my first post on daniweb!

I'm fairly new to C++ and am trying to add sound to my application using FMOD. Now, I have managed to get sound playing correctly using FMOD, but I'm now trying to get all the sounds I want loaded, into a vector (some form of collection).
This is my code that i have in my Sounds.h file:

// code here

vector<FSOUND_SAMPLE> sounds;
// more members

By doing this, I'm getting an error message:

c:\program files (x86)\microsoft visual studio 9.0\vc\include\vector(1117) : error C2036: 'FSOUND_SAMPLE *' : unknown size

Does anyone know how i can store FSOUND sounds into a vector?

Thanks in advance!

Edited by pyroclastic: n/a

6 Years
Discussion Span
Last Post by pyroclastic

Thanks anyway guys.

I decided to approch this is a different manor, and am glad to say its working how i want it to :D
In case someone else is trying to do this, the way I approched it was to simply create a class that holds the FSOUND and then simply push these sound instances onto the vector.


Edited by pyroclastic: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.