Can you please tell me if theres a way to have the name of the song display in the cd audio player. even if i have to pre write them in myself, thanks.
Song title displayed in the cd audio player
Collapse
X
-
Originally posted by WormSure thing. You could use a Label Object and use Label.SetText to show any text you wanted.
As for getting the title from the CD, my understanding is that you'd have to query cddb.org for the title and artist.
Comment
-
-
Originally posted by WormSure thing. You could use a Label Object and use Label.SetText to show any text you wanted.
Comment
-
-
Originally posted by DerekHow are you retrieving the song name/information?
Hope I was clear on my explaination
Comment
-
-
Well, i'm guessing these are retail CDs with .cda tracks.
In order for that to work you need to get the name of the song thats playing into a variable to display it. Otherwise its gonna be a long [and potentially inaccurate] process of typing a lot of lists. Prob best is to import text files during run time - at least you have the option of adjusting these at a later date/time.
Or, if you could somehow access CDDB and dislay the name of the song into a label object , as Worm suggested.
If you are using mp3 files, per chance, you could use File.GetShortName to grab the name of the file (since mp3 tags are no longer supported) and put that into the Label object with Label.SetText.-
= Derek
["All glory comes from daring to begin" - fortune cookie]
Comment
-
-
Originally posted by DerekIf you are using mp3 files, per chance, you could use File.GetShortName to grab the name of the file (since mp3 tags are no longer supported) and put that into the Label object with Label.SetText.
TiggTJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Originally posted by DerekWell, i'm guessing these are retail CDs with .cda tracks.
In order for that to work you need to get the name of the song thats playing into a variable to display it. Otherwise its gonna be a long [and potentially inaccurate] process of typing a lot of lists. Prob best is to import text files during run time - at least you have the option of adjusting these at a later date/time.
Or, if you could somehow access CDDB and dislay the name of the song into a label object , as Worm suggested.
If you are using mp3 files, per chance, you could use File.GetShortName to grab the name of the file (since mp3 tags are no longer supported) and put that into the Label object with Label.SetText.
I know Im asking for a lot but let me know if it would be easier just to take the audio cd im using turn it into a 20meg ogg file and in put it into my project, but! I would need it to skip to the next track like a cd and display either the track number or the name of the song playing. This is very very important to my project. I really hope some one can help me out.
Comment
-
-
Originally posted by clienteleThese are actually burned CD's with CDTEXT that I have input during the the setup process in Nero, hope that helps you guys help me. Its real Important I get this going, thanks again.
I know Im asking for a lot but let me know if it would be easier just to take the audio cd im using turn it into a 20meg ogg file and in put it into my project, but! I would need it to skip to the next track like a cd and display either the track number or the name of the song playing. This is very very important to my project. I really hope some one can help me out.
As for the 20mb ogg file - i guess that means just one file made up of all the files from the CD (?). Prob not the best move since you would have a heck of a time working with the file.
Now, if you mean turn each file into its own ogg file .. that'll work coz you can get the ogg tags and use the info from that to set the Label object.
There's an example in the help file that may be of use to you.-
= Derek
["All glory comes from daring to begin" - fortune cookie]
Comment
-
-
CDText commands might be a nice addition to the CDAudio plugin.
CDAudio.CDTEXTDoesExist()
CDAudio.GetCDTEXT()
Here is some code I found for reading the CDTEXT. I don't know if this can be adapted to AMS or not.
Code:Private Sub privCDText(ByRef objCD As CompactDisc) Dim objCDTrack As CDTrack With objCD strCDText = "Album: " & .CDTextAlbumName & vbCrLf & _ "Artist: " & .CDTextArtistName & vbCrLf & _ "Year: " & .CDTextAlbumYear & vbCrLf & _ vbCrLf & "Tracks:" & vbCrLf For Each objCDTrack In .Tracks With objCDTrack strCDText = strCDText & .CDTextTrackInfo & vbCrLf End With Next End With cmdCDText.Enabled = True Set objCDTrack = Nothing End Sub Private Sub cmdCDText_Click() MsgBox strCDText, vbInformation + vbOKOnly, "CDText" End Sub
TiggTJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Originally posted by TJ_TiggerCDText commands might be a nice addition to the CDAudio plugin.
CDAudio.CDTEXTDoesExist()
CDAudio.GetCDTEXT()
Here is some code I found for reading the CDTEXT. I don't know if this can be adapted to AMS or not.
Code:Private Sub privCDText(ByRef objCD As CompactDisc) Dim objCDTrack As CDTrack With objCD strCDText = "Album: " & .CDTextAlbumName & vbCrLf & _ "Artist: " & .CDTextArtistName & vbCrLf & _ "Year: " & .CDTextAlbumYear & vbCrLf & _ vbCrLf & "Tracks:" & vbCrLf For Each objCDTrack In .Tracks With objCDTrack strCDText = strCDText & .CDTextTrackInfo & vbCrLf End With Next End With cmdCDText.Enabled = True Set objCDTrack = Nothing End Sub Private Sub cmdCDText_Click() MsgBox strCDText, vbInformation + vbOKOnly, "CDText" End Sub
Tigg
Comment
-
Comment