2 * Copyright (c) 2004, Marcus Overhagen <marcus@overhagen.de>. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _MEDIA_FILE_PLAYER_H
6 #define _MEDIA_FILE_PLAYER_H
10 #include <MediaDefs.h>
11 #include <MediaFile.h>
12 #include <MediaTrack.h>
13 #include <SoundPlayer.h>
17 void PlayMediaFile(const char* media_type
, const char* media_name
);
23 MediaFilePlayer(const char* media_type
,
24 const char* media_name
,
35 const entry_ref
* Ref();
37 static void PlayFunction(void* cookie
, void* buffer
,
39 const media_raw_audio_format
& format
);
45 BSoundPlayer
* fSoundPlayer
;
46 BMediaFile
* fPlayFile
;
47 BMediaTrack
* fPlayTrack
;
48 media_format fPlayFormat
;
51 #endif // _MEDIA_FILE_PLAYER_H