Pages: [1]   Go Down
Author Topic: Wave Shield can't open file  (Read 1015 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings,

I am using the wave shield with an arduino uno to play a .wav file (which I converted earlier from .mp3). The file plays fine on my computer, but won't open at all with the arduino. The message that shows up on the serial port is "couldn't open file CARILLONS.WAV". It comes from the code
Code:
  if (!f.open(root, name)) {
    putstring("Couldn't open file "); Serial.print(name); return;
  }
I think that the code just comes from it couldn't open the file. Some other similar files play fine using it, just not this one.
Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1242
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ensure you converted the file to .wav with the correct specs that the wave shield needs

Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried converting it again (I use the same settings for each file, and the others all worked), etc., and it still doesn't work...
Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"CARILLONS.WAV" has a 9.3 format filename, not 8.3   It will be being munged into something else like CARRIL~1.WAV.

Either rename it to something in 8.3 or find out its proper 8.3 format equivalent.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How do you figure out if something is 8.3 or not?
Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1242
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

8.3 =  '8' characters, followed by a '3' character extension


12345678.123


thisis08.wav

Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, okay. Thanks!
Logged

Pages: [1]   Go Up
Jump to: