Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Calling mp3_play_data API plugin to play mp3 file.
« previous next »
  • Print
Pages: [1]

Author Topic: Calling mp3_play_data API plugin to play mp3 file.  (Read 1344 times)

Offline snoozydude

  • Member
  • *
  • Posts: 6
Calling mp3_play_data API plugin to play mp3 file.
« on: November 23, 2007, 12:45:05 AM »
Gidday

I would like to call mp3_play_data to play a mp3 file for a plugin I am hacking/writing but cannot workout if the first argument needs to be a pointer to a buffer containing  mp3 or sound data loaded with other plugin functions or can it just be string representing the directory/filename of a mp3 file
ie mp3_play_data("./rockbox/test.mp3",100,,)

I have searched the source code and cannot find other plugins that are calling mp3_play_data. A previous thread mentioned looking at test_codec (sic codec_test) but this has not clarified it for me.

Would anybody have some sample code which uses mp3_play_data?
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Calling mp3_play_data API plugin to play mp3 file.
« Reply #1 on: November 23, 2007, 01:17:45 AM »
Quote
$ grep -iIr mp3_play_data * | grep -iv \.svn
apps/plugin.c:    mp3_play_data,
apps/plugin.h:    void (*mp3_play_data)(const unsigned char* start, int size, void (*get_more)(unsigned char** start, size_t* size));
apps/plugins/chip8.c:        rb->mp3_play_data(beep, sizeof(beep), callback);
apps/plugins/metronome.c:    rb->mp3_play_data(sound, sizeof(sound), callback);
apps/plugins/video.c:        rb->mp3_play_data(gBuf.pReadAudio + gFileHdr.audio_headersize,
apps/talk.c:        mp3_play_data(buf, sent, mp3_callback);
apps/voice_thread.c:void mp3_play_data(const unsigned char* start, int size,
apps/voice_thread.h:void mp3_play_data(const unsigned char* start, int size,
docs/PLUGIN_API:  void mp3_play_data(unsigned char* start, int size,
firmware/export/mp3_playback.h:void mp3_play_data(const unsigned char* start, int size,
firmware/mp3_playback.c:void mp3_play_data(const unsigned char* start, int size,
firmware/mp3_playback.c:void mp3_play_data(const unsigned char* start, int size,
firmware/mpeg.c:            mp3_play_data(audiobuf + audiobuf_read, last_dma_chunk_size, transfer_end);
firmware/mpeg.c:                    mp3_play_data(audiobuf + audiobuf_read, last_dma_chunk_size, transfer_end);
firmware/mpeg.c:                        mp3_play_data(audiobuf + audiobuf_read,
« Last Edit: November 23, 2007, 01:22:55 AM by cool_walking_ »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Calling mp3_play_data API plugin to play mp3 file.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.