ID3 Tags and XAudio

For questions about using Classic.

Post » Thu Jul 29, 2010 10:30 pm

Working on an audio based game, I want to use the ID3 tags to modify some things.

The trouble is, when I set a file for the ID3 to use, before the action to play the mp3...the music won't play but the tags will work. If I put the Xaudio action first, it plays, but the tags no longer work.

Pretty simple .cap file, should explain things further itself.
[url:3vx1d2v8]http://www.box.net/shared/pl4j5js1cm[/url:3vx1d2v8]
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Sun Aug 01, 2010 5:00 pm

A bit of a workaround, but it's functional. Set your ID3 tags first, then set it to another file before playing the original file. You have to set it to a real file though, I tried just setting ID3 to "" and would get a crash every time you change songs.
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Mon Aug 02, 2010 3:51 am

just a hunch, add two xaudio2's and try loading the same file for each and doing the separate actions on a separate object, it might work.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Aug 02, 2010 5:32 am

I think you misunderstood the problem I was having. The ID3 object and the XAudio object don't like sharing apparently. My work around was to use the ID3 first and set it to an arbitrary file after use, so the XAudio could use the same audio file off the computer. The crash I mentioned came from trying to set ID3 to a nonexistent file.

If I'm wrong, can you explain your reasoning some more?
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Tue Aug 03, 2010 4:39 am

oh im sorry my mistake, i thought ID3 tag reading was part of Xaudio2, i had no idea there was an object on its own. disregard my previous post, my theory was mistaken.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests