Audio module issue (svn - rev 8443)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Audio module issue (svn - rev 8443)

Kamil Muszyński
Hi,

just to inform - after last change in data type of SimTime in simulation, audio controller (Audio.cc, line 160) won't compile because of incorrect types in assignment...

Regards,

KM
Reply | Threaded
Open this post in threaded view
|

Re: Audio module issue (svn - rev 8443)

BenW2
Hi,

Just encountering this problem now, did you find a solution? Im trying to force a cast in the code, but with no luck so far.

Thanks

Kamil Muszyński wrote
Hi,

just to inform - after last change in data type of SimTime in simulation, audio controller (Audio.cc, line 160) won't compile because of incorrect types in assignment...

Regards,

KM
Reply | Threaded
Open this post in threaded view
|

Re: Audio module issue (svn - rev 8443)

BenW2
Worked it out.... pretty simple really once you find the right files

change line 160 from this:
this->audioIface->data->head.time = Simulator::Instance()->GetSimTime();
to this:
this->audioIface->data->head.time = Simulator::Instance()->GetSimTime().Double();


BenW2 wrote
Hi,

Just encountering this problem now, did you find a solution? Im trying to force a cast in the code, but with no luck so far.

Thanks

Kamil Muszyński wrote
Hi,

just to inform - after last change in data type of SimTime in simulation, audio controller (Audio.cc, line 160) won't compile because of incorrect types in assignment...

Regards,

KM