Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411485 Posts in 69371 Topics- by 58428 Members - Latest Member: shelton786

April 24, 2024, 06:25:59 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)OpenAL streaming
Pages: [1]
Print
Author Topic: OpenAL streaming  (Read 589 times)
Deckhead
Level 1
*



View Profile WWW
« on: October 01, 2018, 03:49:29 PM »

I haven't had any luck on Stack Overflow so I was wondering if anyone here might know what I'm doing wrong?

https://stackoverflow.com/q/52589820/1862823
Logged

Daid
Level 3
***



View Profile
« Reply #1 on: October 02, 2018, 06:46:22 AM »

Quick glance, you are not opening the file as binary. As far as I remember, this stops reading on windows on certain characters.

So replace:
Code:
file.open(filename);
With:
Code:
file.open(filename, std::ifstream::binary);
Logged

Software engineer by trade. Game development by hobby.
The Tribute Of Legends Devlog Co-op zelda.
EmptyEpsilon Free Co-op multiplayer spaceship simulator
Deckhead
Level 1
*



View Profile WWW
« Reply #2 on: October 02, 2018, 04:35:03 PM »

Yeah that was it and I feel very stupid.
Logged

oahda
Level 10
*****



View Profile
« Reply #3 on: October 03, 2018, 03:28:02 AM »

Happens to us all! Embarrassed
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic