Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-04-2006, 03:10 AM   #1
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Rep: Reputation: 30
id3lib Strip?

I wrote a c++ function that I am attempting to use in my program. This function is supposed to remove ALL of the tags (v1, v2, lyrics, etc.) from a specified mp3 file.
Here's the code:
#include <iostream>
#include <unistd.h>
#include <string>
#include <id3/tag.h>

using namespace std;

void rm_all_tags(string filename)
    if (access(filename.c_str(), F_OK) != 0) {
        cout << "Could not open the file:\n" << filename << endl;
    else {
        ID3_Tag currentTag(filename.c_str());
This compiles fine, but the tags AREN'T removed when this function is used.
I just tried it on the latest version of id3lib and it was unsuccessful.
Does anyone know what the problem could be?

Thanks In Advance,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling grip with id3lib for id3v2 support xBillyGoatx Linux - Software 1 12-02-2006 07:34 PM
C++ Segmentation Fault id3lib bendeco13 Programming 3 10-26-2005 09:05 PM
Yammi and id3lib problem Tsoots Linux - Software 1 03-13-2004 07:35 AM
configuring gtkpod id3lib error RinGz Linux - Software 1 12-28-2003 04:08 PM
id3lib errors jpc82 Programming 1 10-06-2003 07:51 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration